<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libxlsxwriter: worksheet.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libxlsxwriter
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_9a5cb1f80a06fe707e78a539c1c1dae8.html">xlsxwriter</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#define-members">Macros</a>  </div>
  <div class="headertitle">
<div class="title">worksheet.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Description</h2>
<div class="textblock"><p>The Worksheet object represents an Excel worksheet. It handles operations such as writing data to cells or formatting worksheet layout.</p>
<p>A Worksheet object isn't created directly. Instead a worksheet is created by calling the <a class="el" href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e" title="Add a new worksheet to a workbook.">workbook_add_worksheet()</a> function from a Workbook object:</p>
<div class="fragment"><div class="line"><span class="preprocessor">#include &quot;xlsxwriter.h&quot;</span></div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">int</span> main() {</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__workbook.html">lxw_workbook</a>  *workbook  = <a class="code" href="workbook_8h.html#a1cf96608a23ee4eb0e8467c15240d00b">workbook_new</a>(<span class="stringliteral">&quot;filename.xlsx&quot;</span>);</div>
<div class="line">    <a class="code" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet = <a class="code" href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a>(workbook, NULL);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet, 0, 0, <span class="stringliteral">&quot;Hello Excel&quot;</span>, NULL);</div>
<div class="line"> </div>
<div class="line">    <span class="keywordflow">return</span> <a class="code" href="workbook_8h.html#ad9e7aeebc0fd43562db5bcd527b2ee5e">workbook_close</a>(workbook);</div>
<div class="line">}</div>
</div><!-- fragment --> </div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ad9fc47d3beaa2ab4759414e8580c2289"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#ad9fc47d3beaa2ab4759414e8580c2289">worksheet_write_number</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, double number, <a class="el" href="structlxw__format.html">lxw_format</a> *format)</td></tr>
<tr class="memdesc:ad9fc47d3beaa2ab4759414e8580c2289"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a number to a worksheet cell.  <a href="worksheet_8h.html#ad9fc47d3beaa2ab4759414e8580c2289">More...</a><br /></td></tr>
<tr class="separator:ad9fc47d3beaa2ab4759414e8580c2289"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac208046e7a6d12cc87982422efa41b31"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, const char *string, <a class="el" href="structlxw__format.html">lxw_format</a> *format)</td></tr>
<tr class="memdesc:ac208046e7a6d12cc87982422efa41b31"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a string to a worksheet cell.  <a href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">More...</a><br /></td></tr>
<tr class="separator:ac208046e7a6d12cc87982422efa41b31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae57117f04c82bef29805ec3eabc219bb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#ae57117f04c82bef29805ec3eabc219bb">worksheet_write_formula</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, const char *formula, <a class="el" href="structlxw__format.html">lxw_format</a> *format)</td></tr>
<tr class="memdesc:ae57117f04c82bef29805ec3eabc219bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a formula to a worksheet cell.  <a href="worksheet_8h.html#ae57117f04c82bef29805ec3eabc219bb">More...</a><br /></td></tr>
<tr class="separator:ae57117f04c82bef29805ec3eabc219bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8331799b5821d70c442d637ca66dd6e7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a8331799b5821d70c442d637ca66dd6e7">worksheet_write_array_formula</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> first_row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> first_col, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> last_row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> last_col, const char *formula, <a class="el" href="structlxw__format.html">lxw_format</a> *format)</td></tr>
<tr class="memdesc:a8331799b5821d70c442d637ca66dd6e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write an array formula to a worksheet cell.  <a href="worksheet_8h.html#a8331799b5821d70c442d637ca66dd6e7">More...</a><br /></td></tr>
<tr class="separator:a8331799b5821d70c442d637ca66dd6e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb0b3211160927a3412be28c9364b1b5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#afb0b3211160927a3412be28c9364b1b5">worksheet_write_datetime</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, <a class="el" href="structlxw__datetime.html">lxw_datetime</a> *datetime, <a class="el" href="structlxw__format.html">lxw_format</a> *format)</td></tr>
<tr class="memdesc:afb0b3211160927a3412be28c9364b1b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a date or time to a worksheet cell.  <a href="worksheet_8h.html#afb0b3211160927a3412be28c9364b1b5">More...</a><br /></td></tr>
<tr class="separator:afb0b3211160927a3412be28c9364b1b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b2ac96ee23574a432f5703eedcaf9a1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, const char *url, <a class="el" href="structlxw__format.html">lxw_format</a> *format)</td></tr>
<tr class="separator:a9b2ac96ee23574a432f5703eedcaf9a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af14fc7b20ba84e56510caf15c577cf8c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#af14fc7b20ba84e56510caf15c577cf8c">worksheet_write_boolean</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, int value, <a class="el" href="structlxw__format.html">lxw_format</a> *format)</td></tr>
<tr class="memdesc:af14fc7b20ba84e56510caf15c577cf8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a formatted boolean worksheet cell.  <a href="worksheet_8h.html#af14fc7b20ba84e56510caf15c577cf8c">More...</a><br /></td></tr>
<tr class="separator:af14fc7b20ba84e56510caf15c577cf8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c81b7e398d686a1fe17e76ef4485f34"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a8c81b7e398d686a1fe17e76ef4485f34">worksheet_write_blank</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, <a class="el" href="structlxw__format.html">lxw_format</a> *format)</td></tr>
<tr class="memdesc:a8c81b7e398d686a1fe17e76ef4485f34"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a formatted blank worksheet cell.  <a href="worksheet_8h.html#a8c81b7e398d686a1fe17e76ef4485f34">More...</a><br /></td></tr>
<tr class="separator:a8c81b7e398d686a1fe17e76ef4485f34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af474c01f7ec8ac1a01206c9c4a5867af"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#af474c01f7ec8ac1a01206c9c4a5867af">worksheet_write_formula_num</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, const char *formula, <a class="el" href="structlxw__format.html">lxw_format</a> *format, double result)</td></tr>
<tr class="memdesc:af474c01f7ec8ac1a01206c9c4a5867af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a formula to a worksheet cell with a user defined numeric result.  <a href="worksheet_8h.html#af474c01f7ec8ac1a01206c9c4a5867af">More...</a><br /></td></tr>
<tr class="separator:af474c01f7ec8ac1a01206c9c4a5867af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae55a1d5b4956a8e07ff721ecd80dde95"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#ae55a1d5b4956a8e07ff721ecd80dde95">worksheet_write_formula_str</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, const char *formula, <a class="el" href="structlxw__format.html">lxw_format</a> *format, const char *result)</td></tr>
<tr class="memdesc:ae55a1d5b4956a8e07ff721ecd80dde95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a formula to a worksheet cell with a user defined string result.  <a href="worksheet_8h.html#ae55a1d5b4956a8e07ff721ecd80dde95">More...</a><br /></td></tr>
<tr class="separator:ae55a1d5b4956a8e07ff721ecd80dde95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62bf44845ce9dcc505bf228999db5afa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a62bf44845ce9dcc505bf228999db5afa">worksheet_write_rich_string</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, <a class="el" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> *rich_string[], <a class="el" href="structlxw__format.html">lxw_format</a> *format)</td></tr>
<tr class="memdesc:a62bf44845ce9dcc505bf228999db5afa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a "Rich" multi-format string to a worksheet cell.  <a href="worksheet_8h.html#a62bf44845ce9dcc505bf228999db5afa">More...</a><br /></td></tr>
<tr class="separator:a62bf44845ce9dcc505bf228999db5afa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd1728d105365c0113e15f40c6bb1b27"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#abd1728d105365c0113e15f40c6bb1b27">worksheet_write_comment</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, const char *string)</td></tr>
<tr class="memdesc:abd1728d105365c0113e15f40c6bb1b27"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a comment to a worksheet cell.  <a href="worksheet_8h.html#abd1728d105365c0113e15f40c6bb1b27">More...</a><br /></td></tr>
<tr class="separator:abd1728d105365c0113e15f40c6bb1b27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a158dadac385cd1007994e5478b7b2aa7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, const char *string, <a class="el" href="structlxw__comment__options.html">lxw_comment_options</a> *options)</td></tr>
<tr class="memdesc:a158dadac385cd1007994e5478b7b2aa7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a comment to a worksheet cell with options.  <a href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">More...</a><br /></td></tr>
<tr class="separator:a158dadac385cd1007994e5478b7b2aa7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9b7fb95e1bd9b0da70befd0d37a9173"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, double height, <a class="el" href="structlxw__format.html">lxw_format</a> *format)</td></tr>
<tr class="memdesc:ab9b7fb95e1bd9b0da70befd0d37a9173"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the properties for a row of cells.  <a href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">More...</a><br /></td></tr>
<tr class="separator:ab9b7fb95e1bd9b0da70befd0d37a9173"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbc2de45e0aa84341fb10a98778b3807"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#abbc2de45e0aa84341fb10a98778b3807">worksheet_set_row_opt</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, double height, <a class="el" href="structlxw__format.html">lxw_format</a> *format, <a class="el" href="structlxw__row__col__options.html">lxw_row_col_options</a> *options)</td></tr>
<tr class="memdesc:abbc2de45e0aa84341fb10a98778b3807"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the properties for a row of cells.  <a href="worksheet_8h.html#abbc2de45e0aa84341fb10a98778b3807">More...</a><br /></td></tr>
<tr class="separator:abbc2de45e0aa84341fb10a98778b3807"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9656e4e05d3787eee6b3e4d8e82d9b7f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> first_col, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> last_col, double width, <a class="el" href="structlxw__format.html">lxw_format</a> *format)</td></tr>
<tr class="memdesc:a9656e4e05d3787eee6b3e4d8e82d9b7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the properties for one or more columns of cells.  <a href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">More...</a><br /></td></tr>
<tr class="separator:a9656e4e05d3787eee6b3e4d8e82d9b7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52c4c145f684c5b4dcd2ed304d1fe907"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a52c4c145f684c5b4dcd2ed304d1fe907">worksheet_set_column_opt</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> first_col, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> last_col, double width, <a class="el" href="structlxw__format.html">lxw_format</a> *format, <a class="el" href="structlxw__row__col__options.html">lxw_row_col_options</a> *options)</td></tr>
<tr class="memdesc:a52c4c145f684c5b4dcd2ed304d1fe907"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the properties for one or more columns of cells with options.  <a href="worksheet_8h.html#a52c4c145f684c5b4dcd2ed304d1fe907">More...</a><br /></td></tr>
<tr class="separator:a52c4c145f684c5b4dcd2ed304d1fe907"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4529d77bcefcf478b8209f46fe730f6f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a4529d77bcefcf478b8209f46fe730f6f">worksheet_insert_image</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, const char *filename)</td></tr>
<tr class="memdesc:a4529d77bcefcf478b8209f46fe730f6f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert an image in a worksheet cell.  <a href="worksheet_8h.html#a4529d77bcefcf478b8209f46fe730f6f">More...</a><br /></td></tr>
<tr class="separator:a4529d77bcefcf478b8209f46fe730f6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b05e75e2c2a5c3452374714cdb2b79b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a0b05e75e2c2a5c3452374714cdb2b79b">worksheet_insert_image_opt</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, const char *filename, <a class="el" href="structlxw__image__options.html">lxw_image_options</a> *options)</td></tr>
<tr class="memdesc:a0b05e75e2c2a5c3452374714cdb2b79b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert an image in a worksheet cell, with options.  <a href="worksheet_8h.html#a0b05e75e2c2a5c3452374714cdb2b79b">More...</a><br /></td></tr>
<tr class="separator:a0b05e75e2c2a5c3452374714cdb2b79b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebd5cc71a42ab0e4a9ce45fe9a6f6908"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#aebd5cc71a42ab0e4a9ce45fe9a6f6908">worksheet_insert_image_buffer</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, const unsigned char *image_buffer, size_t image_size)</td></tr>
<tr class="memdesc:aebd5cc71a42ab0e4a9ce45fe9a6f6908"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert an image in a worksheet cell, from a memory buffer.  <a href="worksheet_8h.html#aebd5cc71a42ab0e4a9ce45fe9a6f6908">More...</a><br /></td></tr>
<tr class="separator:aebd5cc71a42ab0e4a9ce45fe9a6f6908"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4c868a5cf0eaab8740c1f966ba5561c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#af4c868a5cf0eaab8740c1f966ba5561c">worksheet_insert_image_buffer_opt</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, const unsigned char *image_buffer, size_t image_size, <a class="el" href="structlxw__image__options.html">lxw_image_options</a> *options)</td></tr>
<tr class="memdesc:af4c868a5cf0eaab8740c1f966ba5561c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert an image in a worksheet cell, from a memory buffer.  <a href="worksheet_8h.html#af4c868a5cf0eaab8740c1f966ba5561c">More...</a><br /></td></tr>
<tr class="separator:af4c868a5cf0eaab8740c1f966ba5561c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2067faaacb8bfa6550b019e915900a2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#ac2067faaacb8bfa6550b019e915900a2">worksheet_insert_chart</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, <a class="el" href="structlxw__chart.html">lxw_chart</a> *chart)</td></tr>
<tr class="memdesc:ac2067faaacb8bfa6550b019e915900a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert a chart object into a worksheet.  <a href="worksheet_8h.html#ac2067faaacb8bfa6550b019e915900a2">More...</a><br /></td></tr>
<tr class="separator:ac2067faaacb8bfa6550b019e915900a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e8ea2614bc214fa0cc8992733c51f5f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a4e8ea2614bc214fa0cc8992733c51f5f">worksheet_insert_chart_opt</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, <a class="el" href="structlxw__chart.html">lxw_chart</a> *chart, <a class="el" href="structlxw__chart__options.html">lxw_chart_options</a> *user_options)</td></tr>
<tr class="memdesc:a4e8ea2614bc214fa0cc8992733c51f5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert a chart object into a worksheet, with options.  <a href="worksheet_8h.html#a4e8ea2614bc214fa0cc8992733c51f5f">More...</a><br /></td></tr>
<tr class="separator:a4e8ea2614bc214fa0cc8992733c51f5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5a2a09ec65c0f286b756235c7327225"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#ad5a2a09ec65c0f286b756235c7327225">worksheet_merge_range</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> first_row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> first_col, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> last_row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> last_col, const char *string, <a class="el" href="structlxw__format.html">lxw_format</a> *format)</td></tr>
<tr class="memdesc:ad5a2a09ec65c0f286b756235c7327225"><td class="mdescLeft">&#160;</td><td class="mdescRight">Merge a range of cells.  <a href="worksheet_8h.html#ad5a2a09ec65c0f286b756235c7327225">More...</a><br /></td></tr>
<tr class="separator:ad5a2a09ec65c0f286b756235c7327225"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e2b1de34e96331000a996f512aecfcf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a4e2b1de34e96331000a996f512aecfcf">worksheet_autofilter</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> first_row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> first_col, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> last_row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> last_col)</td></tr>
<tr class="memdesc:a4e2b1de34e96331000a996f512aecfcf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the autofilter area in the worksheet.  <a href="worksheet_8h.html#a4e2b1de34e96331000a996f512aecfcf">More...</a><br /></td></tr>
<tr class="separator:a4e2b1de34e96331000a996f512aecfcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70c4b9cfb27b18258117545ac6ce6da0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a70c4b9cfb27b18258117545ac6ce6da0">worksheet_data_validation_cell</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, <a class="el" href="structlxw__data__validation.html">lxw_data_validation</a> *validation)</td></tr>
<tr class="memdesc:a70c4b9cfb27b18258117545ac6ce6da0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a data validation to a cell.  <a href="worksheet_8h.html#a70c4b9cfb27b18258117545ac6ce6da0">More...</a><br /></td></tr>
<tr class="separator:a70c4b9cfb27b18258117545ac6ce6da0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14f482010dd0f817e17001d01644a57f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a14f482010dd0f817e17001d01644a57f">worksheet_data_validation_range</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> first_row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> first_col, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> last_row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> last_col, <a class="el" href="structlxw__data__validation.html">lxw_data_validation</a> *validation)</td></tr>
<tr class="memdesc:a14f482010dd0f817e17001d01644a57f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a data validation to a range.  <a href="worksheet_8h.html#a14f482010dd0f817e17001d01644a57f">More...</a><br /></td></tr>
<tr class="separator:a14f482010dd0f817e17001d01644a57f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a171180f46f54aa816c2b3c6c8688ab17"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a171180f46f54aa816c2b3c6c8688ab17">worksheet_conditional_format_cell</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col, <a class="el" href="structlxw__conditional__format.html">lxw_conditional_format</a> *conditional_format)</td></tr>
<tr class="memdesc:a171180f46f54aa816c2b3c6c8688ab17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a conditional format to a worksheet cell.  <a href="worksheet_8h.html#a171180f46f54aa816c2b3c6c8688ab17">More...</a><br /></td></tr>
<tr class="separator:a171180f46f54aa816c2b3c6c8688ab17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef79f21eefbda49cd04e338d958c8a95"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#aef79f21eefbda49cd04e338d958c8a95">worksheet_conditional_format_range</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> first_row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> first_col, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> last_row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> last_col, <a class="el" href="structlxw__conditional__format.html">lxw_conditional_format</a> *conditional_format)</td></tr>
<tr class="memdesc:aef79f21eefbda49cd04e338d958c8a95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a conditional format to a worksheet range.  <a href="worksheet_8h.html#aef79f21eefbda49cd04e338d958c8a95">More...</a><br /></td></tr>
<tr class="separator:aef79f21eefbda49cd04e338d958c8a95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76ec76f91328c512d3d86a35642f0a08"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a76ec76f91328c512d3d86a35642f0a08">worksheet_activate</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet)</td></tr>
<tr class="memdesc:a76ec76f91328c512d3d86a35642f0a08"><td class="mdescLeft">&#160;</td><td class="mdescRight">Make a worksheet the active, i.e., visible worksheet.  <a href="worksheet_8h.html#a76ec76f91328c512d3d86a35642f0a08">More...</a><br /></td></tr>
<tr class="separator:a76ec76f91328c512d3d86a35642f0a08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78bfe3a786149deca69248db57da182f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a78bfe3a786149deca69248db57da182f">worksheet_select</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet)</td></tr>
<tr class="memdesc:a78bfe3a786149deca69248db57da182f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a worksheet tab as selected.  <a href="worksheet_8h.html#a78bfe3a786149deca69248db57da182f">More...</a><br /></td></tr>
<tr class="separator:a78bfe3a786149deca69248db57da182f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a180fcbcf012b5c165a01490d1128dc11"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a180fcbcf012b5c165a01490d1128dc11">worksheet_hide</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet)</td></tr>
<tr class="memdesc:a180fcbcf012b5c165a01490d1128dc11"><td class="mdescLeft">&#160;</td><td class="mdescRight">Hide the current worksheet.  <a href="worksheet_8h.html#a180fcbcf012b5c165a01490d1128dc11">More...</a><br /></td></tr>
<tr class="separator:a180fcbcf012b5c165a01490d1128dc11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a463c8d3247f56e0ec191b148355f42f0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a463c8d3247f56e0ec191b148355f42f0">worksheet_set_first_sheet</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet)</td></tr>
<tr class="memdesc:a463c8d3247f56e0ec191b148355f42f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set current worksheet as the first visible sheet tab.  <a href="worksheet_8h.html#a463c8d3247f56e0ec191b148355f42f0">More...</a><br /></td></tr>
<tr class="separator:a463c8d3247f56e0ec191b148355f42f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e52f1eecb20fe4f9e6223bcf195103b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a7e52f1eecb20fe4f9e6223bcf195103b">worksheet_freeze_panes</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> col)</td></tr>
<tr class="memdesc:a7e52f1eecb20fe4f9e6223bcf195103b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Split and freeze a worksheet into panes.  <a href="worksheet_8h.html#a7e52f1eecb20fe4f9e6223bcf195103b">More...</a><br /></td></tr>
<tr class="separator:a7e52f1eecb20fe4f9e6223bcf195103b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f4a3845529bcc2922b89bdb450ded32"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a9f4a3845529bcc2922b89bdb450ded32">worksheet_split_panes</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, double vertical, double horizontal)</td></tr>
<tr class="memdesc:a9f4a3845529bcc2922b89bdb450ded32"><td class="mdescLeft">&#160;</td><td class="mdescRight">Split a worksheet into panes.  <a href="worksheet_8h.html#a9f4a3845529bcc2922b89bdb450ded32">More...</a><br /></td></tr>
<tr class="separator:a9f4a3845529bcc2922b89bdb450ded32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62368aa313184d72a9ca2b1cf5de9a8a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a62368aa313184d72a9ca2b1cf5de9a8a">worksheet_set_selection</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> first_row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> first_col, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> last_row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> last_col)</td></tr>
<tr class="memdesc:a62368aa313184d72a9ca2b1cf5de9a8a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the selected cell or cells in a worksheet:  <a href="worksheet_8h.html#a62368aa313184d72a9ca2b1cf5de9a8a">More...</a><br /></td></tr>
<tr class="separator:a62368aa313184d72a9ca2b1cf5de9a8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad24e2a01fccb881e4cc478a92aa095e6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#ad24e2a01fccb881e4cc478a92aa095e6">worksheet_set_landscape</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet)</td></tr>
<tr class="memdesc:ad24e2a01fccb881e4cc478a92aa095e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the page orientation as landscape.  <a href="worksheet_8h.html#ad24e2a01fccb881e4cc478a92aa095e6">More...</a><br /></td></tr>
<tr class="separator:ad24e2a01fccb881e4cc478a92aa095e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af498d1caa032633240af6d26ef80515a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#af498d1caa032633240af6d26ef80515a">worksheet_set_portrait</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet)</td></tr>
<tr class="memdesc:af498d1caa032633240af6d26ef80515a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the page orientation as portrait.  <a href="worksheet_8h.html#af498d1caa032633240af6d26ef80515a">More...</a><br /></td></tr>
<tr class="separator:af498d1caa032633240af6d26ef80515a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d442a52a3549d5d2324f13787b66f47"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a5d442a52a3549d5d2324f13787b66f47">worksheet_set_page_view</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet)</td></tr>
<tr class="memdesc:a5d442a52a3549d5d2324f13787b66f47"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the page layout to page view mode.  <a href="worksheet_8h.html#a5d442a52a3549d5d2324f13787b66f47">More...</a><br /></td></tr>
<tr class="separator:a5d442a52a3549d5d2324f13787b66f47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f8af12017797b10c5ee68e04149032f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a9f8af12017797b10c5ee68e04149032f">worksheet_set_paper</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, uint8_t paper_type)</td></tr>
<tr class="memdesc:a9f8af12017797b10c5ee68e04149032f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the paper type for printing.  <a href="worksheet_8h.html#a9f8af12017797b10c5ee68e04149032f">More...</a><br /></td></tr>
<tr class="separator:a9f8af12017797b10c5ee68e04149032f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab942bbc0493eaa5cf5696da30b6f872d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#ab942bbc0493eaa5cf5696da30b6f872d">worksheet_set_margins</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, double left, double right, double top, double bottom)</td></tr>
<tr class="memdesc:ab942bbc0493eaa5cf5696da30b6f872d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the worksheet margins for the printed page.  <a href="worksheet_8h.html#ab942bbc0493eaa5cf5696da30b6f872d">More...</a><br /></td></tr>
<tr class="separator:ab942bbc0493eaa5cf5696da30b6f872d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4070c24ed5107f33e94f30a1bf865ba9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9">worksheet_set_header</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, const char *string)</td></tr>
<tr class="memdesc:a4070c24ed5107f33e94f30a1bf865ba9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the printed page header caption.  <a href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9">More...</a><br /></td></tr>
<tr class="separator:a4070c24ed5107f33e94f30a1bf865ba9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57eb561cf3ab5e408a6612f0e379903a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a57eb561cf3ab5e408a6612f0e379903a">worksheet_set_footer</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, const char *string)</td></tr>
<tr class="memdesc:a57eb561cf3ab5e408a6612f0e379903a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the printed page footer caption.  <a href="worksheet_8h.html#a57eb561cf3ab5e408a6612f0e379903a">More...</a><br /></td></tr>
<tr class="separator:a57eb561cf3ab5e408a6612f0e379903a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab913a06656ecf28292d6b21d3c3eaaac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#ab913a06656ecf28292d6b21d3c3eaaac">worksheet_set_header_opt</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, const char *string, <a class="el" href="structlxw__header__footer__options.html">lxw_header_footer_options</a> *options)</td></tr>
<tr class="memdesc:ab913a06656ecf28292d6b21d3c3eaaac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the printed page header caption with additional options.  <a href="worksheet_8h.html#ab913a06656ecf28292d6b21d3c3eaaac">More...</a><br /></td></tr>
<tr class="separator:ab913a06656ecf28292d6b21d3c3eaaac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed383b6dd3319d58a113226e5e73331f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#aed383b6dd3319d58a113226e5e73331f">worksheet_set_footer_opt</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, const char *string, <a class="el" href="structlxw__header__footer__options.html">lxw_header_footer_options</a> *options)</td></tr>
<tr class="memdesc:aed383b6dd3319d58a113226e5e73331f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the printed page footer caption with additional options.  <a href="worksheet_8h.html#aed383b6dd3319d58a113226e5e73331f">More...</a><br /></td></tr>
<tr class="separator:aed383b6dd3319d58a113226e5e73331f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9601745a2e9e7b1e194b7f5283f197f0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a9601745a2e9e7b1e194b7f5283f197f0">worksheet_set_h_pagebreaks</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> breaks[])</td></tr>
<tr class="memdesc:a9601745a2e9e7b1e194b7f5283f197f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the horizontal page breaks on a worksheet.  <a href="worksheet_8h.html#a9601745a2e9e7b1e194b7f5283f197f0">More...</a><br /></td></tr>
<tr class="separator:a9601745a2e9e7b1e194b7f5283f197f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00621cf25b5a449a92bb9b3fc83327e6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a00621cf25b5a449a92bb9b3fc83327e6">worksheet_set_v_pagebreaks</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> breaks[])</td></tr>
<tr class="memdesc:a00621cf25b5a449a92bb9b3fc83327e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the vertical page breaks on a worksheet.  <a href="worksheet_8h.html#a00621cf25b5a449a92bb9b3fc83327e6">More...</a><br /></td></tr>
<tr class="separator:a00621cf25b5a449a92bb9b3fc83327e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40d32d247593e01c00b5c5c606fb4bb3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a40d32d247593e01c00b5c5c606fb4bb3">worksheet_print_across</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet)</td></tr>
<tr class="memdesc:a40d32d247593e01c00b5c5c606fb4bb3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the order in which pages are printed.  <a href="worksheet_8h.html#a40d32d247593e01c00b5c5c606fb4bb3">More...</a><br /></td></tr>
<tr class="separator:a40d32d247593e01c00b5c5c606fb4bb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38e16dc0a2e75d7ec99dca21fbeec89b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a38e16dc0a2e75d7ec99dca21fbeec89b">worksheet_set_zoom</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, uint16_t scale)</td></tr>
<tr class="memdesc:a38e16dc0a2e75d7ec99dca21fbeec89b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the worksheet zoom factor.  <a href="worksheet_8h.html#a38e16dc0a2e75d7ec99dca21fbeec89b">More...</a><br /></td></tr>
<tr class="separator:a38e16dc0a2e75d7ec99dca21fbeec89b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd9af70f706b738690ebb9103940b0e1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#abd9af70f706b738690ebb9103940b0e1">worksheet_gridlines</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, uint8_t option)</td></tr>
<tr class="memdesc:abd9af70f706b738690ebb9103940b0e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the option to display or hide gridlines on the screen and the printed page.  <a href="worksheet_8h.html#abd9af70f706b738690ebb9103940b0e1">More...</a><br /></td></tr>
<tr class="separator:abd9af70f706b738690ebb9103940b0e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a931114d5266e03931f9fc1b21bd9b56c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a931114d5266e03931f9fc1b21bd9b56c">worksheet_center_horizontally</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet)</td></tr>
<tr class="memdesc:a931114d5266e03931f9fc1b21bd9b56c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Center the printed page horizontally.  <a href="worksheet_8h.html#a931114d5266e03931f9fc1b21bd9b56c">More...</a><br /></td></tr>
<tr class="separator:a931114d5266e03931f9fc1b21bd9b56c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a7fdfe9ef603ef75a03818e6abbfd12"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a3a7fdfe9ef603ef75a03818e6abbfd12">worksheet_center_vertically</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet)</td></tr>
<tr class="memdesc:a3a7fdfe9ef603ef75a03818e6abbfd12"><td class="mdescLeft">&#160;</td><td class="mdescRight">Center the printed page vertically.  <a href="worksheet_8h.html#a3a7fdfe9ef603ef75a03818e6abbfd12">More...</a><br /></td></tr>
<tr class="separator:a3a7fdfe9ef603ef75a03818e6abbfd12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb169a9740135f5c01eab94099d77f9b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#adb169a9740135f5c01eab94099d77f9b">worksheet_print_row_col_headers</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet)</td></tr>
<tr class="memdesc:adb169a9740135f5c01eab94099d77f9b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the option to print the row and column headers on the printed page.  <a href="worksheet_8h.html#adb169a9740135f5c01eab94099d77f9b">More...</a><br /></td></tr>
<tr class="separator:adb169a9740135f5c01eab94099d77f9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5022e812b6fe0414f2a8bab03fd0ec48"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a5022e812b6fe0414f2a8bab03fd0ec48">worksheet_repeat_rows</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> first_row, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> last_row)</td></tr>
<tr class="memdesc:a5022e812b6fe0414f2a8bab03fd0ec48"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the number of rows to repeat at the top of each printed page.  <a href="worksheet_8h.html#a5022e812b6fe0414f2a8bab03fd0ec48">More...</a><br /></td></tr>
<tr class="separator:a5022e812b6fe0414f2a8bab03fd0ec48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a932dd78e18c8e82a21f87e5344aa9c65"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a932dd78e18c8e82a21f87e5344aa9c65">worksheet_repeat_columns</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> first_col, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> last_col)</td></tr>
<tr class="memdesc:a932dd78e18c8e82a21f87e5344aa9c65"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the number of columns to repeat at the top of each printed page.  <a href="worksheet_8h.html#a932dd78e18c8e82a21f87e5344aa9c65">More...</a><br /></td></tr>
<tr class="separator:a932dd78e18c8e82a21f87e5344aa9c65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab92116759b56cd67419febf6e0aa2c9e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#ab92116759b56cd67419febf6e0aa2c9e">worksheet_print_area</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> first_row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> first_col, <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> last_row, <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> last_col)</td></tr>
<tr class="memdesc:ab92116759b56cd67419febf6e0aa2c9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the print area for a worksheet.  <a href="worksheet_8h.html#ab92116759b56cd67419febf6e0aa2c9e">More...</a><br /></td></tr>
<tr class="separator:ab92116759b56cd67419febf6e0aa2c9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ed8b0603df10ce2439b54f7980efb6d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a9ed8b0603df10ce2439b54f7980efb6d">worksheet_fit_to_pages</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, uint16_t width, uint16_t height)</td></tr>
<tr class="memdesc:a9ed8b0603df10ce2439b54f7980efb6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fit the printed area to a specific number of pages both vertically and horizontally.  <a href="worksheet_8h.html#a9ed8b0603df10ce2439b54f7980efb6d">More...</a><br /></td></tr>
<tr class="separator:a9ed8b0603df10ce2439b54f7980efb6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a817235e5ce7b1ea030bedd86ddbb9844"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a817235e5ce7b1ea030bedd86ddbb9844">worksheet_set_start_page</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, uint16_t start_page)</td></tr>
<tr class="memdesc:a817235e5ce7b1ea030bedd86ddbb9844"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the start page number when printing.  <a href="worksheet_8h.html#a817235e5ce7b1ea030bedd86ddbb9844">More...</a><br /></td></tr>
<tr class="separator:a817235e5ce7b1ea030bedd86ddbb9844"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26130cfccecf80a9833d65a84039374d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a26130cfccecf80a9833d65a84039374d">worksheet_set_print_scale</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, uint16_t scale)</td></tr>
<tr class="memdesc:a26130cfccecf80a9833d65a84039374d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the scale factor for the printed page.  <a href="worksheet_8h.html#a26130cfccecf80a9833d65a84039374d">More...</a><br /></td></tr>
<tr class="separator:a26130cfccecf80a9833d65a84039374d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e32eb8e5f17aedb048035a5df337538"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a6e32eb8e5f17aedb048035a5df337538">worksheet_right_to_left</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet)</td></tr>
<tr class="memdesc:a6e32eb8e5f17aedb048035a5df337538"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display the worksheet cells from right to left for some versions of Excel.  <a href="worksheet_8h.html#a6e32eb8e5f17aedb048035a5df337538">More...</a><br /></td></tr>
<tr class="separator:a6e32eb8e5f17aedb048035a5df337538"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b02d53154397cd4024e8ec2a95e2d89"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a0b02d53154397cd4024e8ec2a95e2d89">worksheet_hide_zero</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet)</td></tr>
<tr class="memdesc:a0b02d53154397cd4024e8ec2a95e2d89"><td class="mdescLeft">&#160;</td><td class="mdescRight">Hide zero values in worksheet cells.  <a href="worksheet_8h.html#a0b02d53154397cd4024e8ec2a95e2d89">More...</a><br /></td></tr>
<tr class="separator:a0b02d53154397cd4024e8ec2a95e2d89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e84ef4dff791fc2278dfb029af94cb0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a1e84ef4dff791fc2278dfb029af94cb0">worksheet_set_tab_color</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, <a class="el" href="format_8h.html#a34a05058edd856109e5bcf1cc6739fc9">lxw_color_t</a> color)</td></tr>
<tr class="memdesc:a1e84ef4dff791fc2278dfb029af94cb0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the color of the worksheet tab.  <a href="worksheet_8h.html#a1e84ef4dff791fc2278dfb029af94cb0">More...</a><br /></td></tr>
<tr class="separator:a1e84ef4dff791fc2278dfb029af94cb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b49e135d4debcdb25941f2f40f04cb0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a1b49e135d4debcdb25941f2f40f04cb0">worksheet_protect</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, const char *password, <a class="el" href="structlxw__protection.html">lxw_protection</a> *options)</td></tr>
<tr class="memdesc:a1b49e135d4debcdb25941f2f40f04cb0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Protect elements of a worksheet from modification.  <a href="worksheet_8h.html#a1b49e135d4debcdb25941f2f40f04cb0">More...</a><br /></td></tr>
<tr class="separator:a1b49e135d4debcdb25941f2f40f04cb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9efae5027e762c9a29f6afa547e4b2db"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a9efae5027e762c9a29f6afa547e4b2db">worksheet_outline_settings</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, uint8_t visible, uint8_t symbols_below, uint8_t symbols_right, uint8_t auto_style)</td></tr>
<tr class="memdesc:a9efae5027e762c9a29f6afa547e4b2db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Outline and Grouping display properties.  <a href="worksheet_8h.html#a9efae5027e762c9a29f6afa547e4b2db">More...</a><br /></td></tr>
<tr class="separator:a9efae5027e762c9a29f6afa547e4b2db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74121de7c4f67639b30f302d4af48eb4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a74121de7c4f67639b30f302d4af48eb4">worksheet_set_default_row</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, double height, uint8_t hide_unused_rows)</td></tr>
<tr class="memdesc:a74121de7c4f67639b30f302d4af48eb4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the default row properties.  <a href="worksheet_8h.html#a74121de7c4f67639b30f302d4af48eb4">More...</a><br /></td></tr>
<tr class="separator:a74121de7c4f67639b30f302d4af48eb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8df6c0ce82172dafdd3e81923978bd4b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a8df6c0ce82172dafdd3e81923978bd4b">worksheet_set_vba_name</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, const char *name)</td></tr>
<tr class="memdesc:a8df6c0ce82172dafdd3e81923978bd4b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the VBA name for the worksheet.  <a href="worksheet_8h.html#a8df6c0ce82172dafdd3e81923978bd4b">More...</a><br /></td></tr>
<tr class="separator:a8df6c0ce82172dafdd3e81923978bd4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafb945c6f7f462e7c6eb24032ea4e61a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#aafb945c6f7f462e7c6eb24032ea4e61a">worksheet_show_comments</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet)</td></tr>
<tr class="memdesc:aafb945c6f7f462e7c6eb24032ea4e61a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Make all comments in the worksheet visible.  <a href="worksheet_8h.html#aafb945c6f7f462e7c6eb24032ea4e61a">More...</a><br /></td></tr>
<tr class="separator:aafb945c6f7f462e7c6eb24032ea4e61a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af196b0cb611f3abc800f3439f3bb8942"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#af196b0cb611f3abc800f3439f3bb8942">worksheet_set_comments_author</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, const char *author)</td></tr>
<tr class="memdesc:af196b0cb611f3abc800f3439f3bb8942"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the default author of the cell comments.  <a href="worksheet_8h.html#af196b0cb611f3abc800f3439f3bb8942">More...</a><br /></td></tr>
<tr class="separator:af196b0cb611f3abc800f3439f3bb8942"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af052fbb1e438c622b873ca3ebd6ef0f4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#af052fbb1e438c622b873ca3ebd6ef0f4">worksheet_ignore_errors</a> (<a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet, uint8_t type, const char *range)</td></tr>
<tr class="memdesc:af052fbb1e438c622b873ca3ebd6ef0f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ignore various Excel errors/warnings in a worksheet for user defined ranges.  <a href="worksheet_8h.html#af052fbb1e438c622b873ca3ebd6ef0f4">More...</a><br /></td></tr>
<tr class="separator:af052fbb1e438c622b873ca3ebd6ef0f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ad9fc47d3beaa2ab4759414e8580c2289"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9fc47d3beaa2ab4759414e8580c2289">&#9670;&nbsp;</a></span>worksheet_write_number()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_write_number </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__format.html">lxw_format</a> *&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">number</td><td>The number to write to the cell. </td></tr>
    <tr><td class="paramname">format</td><td>A pointer to a Format instance or NULL.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code><a class="el" href="worksheet_8h.html#ad9fc47d3beaa2ab4759414e8580c2289" title="Write a number to a worksheet cell.">worksheet_write_number()</a></code> function writes numeric types to the cell specified by <code>row</code> and <code>column</code>:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#ad9fc47d3beaa2ab4759414e8580c2289">worksheet_write_number</a>(worksheet, 0, 0, 123456, NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#ad9fc47d3beaa2ab4759414e8580c2289">worksheet_write_number</a>(worksheet, 1, 0, 2.3451, NULL);</div>
</div><!-- fragment --><div class="image">
<img src="write_number01.png" alt=""/>
</div>
<p>The native data type for all numbers in Excel is a IEEE-754 64-bit double-precision floating point, which is also the default type used by <code>worksheet_write_number</code>.</p>
<p>The <code>format</code> parameter is used to apply formatting to the cell. This parameter can be <code>NULL</code> to indicate no formatting or it can be a <a class="el" href="format_8h.html">Format</a> object.</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__format.html">lxw_format</a> *format = <a class="code" href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a>(workbook);</div>
<div class="line"><a class="code" href="format_8h.html#af77bbd0003344cb16d455c7fb709e16c">format_set_num_format</a>(format, <span class="stringliteral">&quot;$#,##0.00&quot;</span>);</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#ad9fc47d3beaa2ab4759414e8580c2289">worksheet_write_number</a>(worksheet, 0, 0, 1234.567, format);</div>
</div><!-- fragment --><div class="image">
<img src="write_number02.png" alt=""/>
</div>
<dl class="section note"><dt>Note</dt><dd>Excel doesn't support <code>NaN</code>, <code>Inf</code> or <code>-Inf</code> as a number value. If you are writing data that contains these values then your application should convert them to a string or handle them in some other way. </dd></dl>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="anatomy_8c-example.html#a10">anatomy.c</a>, <a class="el" href="array_formula_8c-example.html#a4">array_formula.c</a>, <a class="el" href="autofilter_8c-example.html#a5">autofilter.c</a>, <a class="el" href="chart_8c-example.html#a1">chart.c</a>, <a class="el" href="chart_area_8c-example.html#a4">chart_area.c</a>, <a class="el" href="chart_bar_8c-example.html#a4">chart_bar.c</a>, <a class="el" href="chart_clustered_8c-example.html#a3">chart_clustered.c</a>, <a class="el" href="chart_column_8c-example.html#a4">chart_column.c</a>, <a class="el" href="chart_data_labels_8c-example.html#a10">chart_data_labels.c</a>, <a class="el" href="chart_data_table_8c-example.html#a4">chart_data_table.c</a>, <a class="el" href="chart_data_tools_8c-example.html#a4">chart_data_tools.c</a>, <a class="el" href="chart_doughnut_8c-example.html#a4">chart_doughnut.c</a>, <a class="el" href="chart_fonts_8c-example.html#a4">chart_fonts.c</a>, <a class="el" href="chart_line_8c-example.html#a4">chart_line.c</a>, <a class="el" href="chart_pattern_8c-example.html#a9">chart_pattern.c</a>, <a class="el" href="chart_pie_8c-example.html#a4">chart_pie.c</a>, <a class="el" href="chart_radar_8c-example.html#a4">chart_radar.c</a>, <a class="el" href="chart_scatter_8c-example.html#a4">chart_scatter.c</a>, <a class="el" href="chart_styles_8c-example.html#a15">chart_styles.c</a>, <a class="el" href="chartsheet_8c-example.html#a4">chartsheet.c</a>, <a class="el" href="conditional_format1_8c-example.html#a4">conditional_format1.c</a>, <a class="el" href="conditional_format2_8c-example.html#a1">conditional_format2.c</a>, <a class="el" href="constant_memory_8c-example.html#a8">constant_memory.c</a>, <a class="el" href="data_validate_8c-example.html#a4">data_validate.c</a>, <a class="el" href="dates_and_times01_8c-example.html#a8">dates_and_times01.c</a>, <a class="el" href="demo_8c-example.html#a9">demo.c</a>, <a class="el" href="format_num_format_8c-example.html#a8">format_num_format.c</a>, <a class="el" href="hello_8c-example.html#a5">hello.c</a>, <a class="el" href="outline_8c-example.html#a15">outline.c</a>, <a class="el" href="outline_collapsed_8c-example.html#a6">outline_collapsed.c</a>, <a class="el" href="panes_8c-example.html#a18">panes.c</a>, <a class="el" href="tutorial1_8c-example.html#a5">tutorial1.c</a>, <a class="el" href="tutorial2_8c-example.html#a9">tutorial2.c</a>, and <a class="el" href="tutorial3_8c-example.html#a13">tutorial3.c</a>.</dd>
</dl>

</div>
</div>
<a id="ac208046e7a6d12cc87982422efa41b31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac208046e7a6d12cc87982422efa41b31">&#9670;&nbsp;</a></span>worksheet_write_string()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_write_string </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__format.html">lxw_format</a> *&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">string</td><td>String to write to cell. </td></tr>
    <tr><td class="paramname">format</td><td>A pointer to a Format instance or NULL.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_write_string()</code> function writes a string to the cell specified by <code>row</code> and <code>column</code>:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet, 0, 0, <span class="stringliteral">&quot;This phrase is English!&quot;</span>, NULL);</div>
</div><!-- fragment --><div class="image">
<img src="write_string01.png" alt=""/>
</div>
<p>The <code>format</code> parameter is used to apply formatting to the cell. This parameter can be <code>NULL</code> to indicate no formatting or it can be a <a class="el" href="format_8h.html">Format</a> object:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__format.html">lxw_format</a> *format = <a class="code" href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a>(workbook);</div>
<div class="line"><a class="code" href="format_8h.html#a85e1b0baf44b445b65894e48722aec14">format_set_bold</a>(format);</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet, 0, 0, <span class="stringliteral">&quot;This phrase is Bold!&quot;</span>, format);</div>
</div><!-- fragment --><div class="image">
<img src="write_string02.png" alt=""/>
</div>
<p>Unicode strings are supported in UTF-8 encoding. This generally requires that your source file is UTF-8 encoded or that the data has been read from a UTF-8 source:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet, 0, 0, <span class="stringliteral">&quot;Это фраза на русском!&quot;</span>, NULL);</div>
</div><!-- fragment --><div class="image">
<img src="write_string03.png" alt=""/>
</div>
 <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="anatomy_8c-example.html#a9">anatomy.c</a>, <a class="el" href="autofilter_8c-example.html#a4">autofilter.c</a>, <a class="el" href="chart_area_8c-example.html#a2">chart_area.c</a>, <a class="el" href="chart_bar_8c-example.html#a2">chart_bar.c</a>, <a class="el" href="chart_clustered_8c-example.html#a2">chart_clustered.c</a>, <a class="el" href="chart_column_8c-example.html#a2">chart_column.c</a>, <a class="el" href="chart_data_labels_8c-example.html#a9">chart_data_labels.c</a>, <a class="el" href="chart_data_table_8c-example.html#a2">chart_data_table.c</a>, <a class="el" href="chart_data_tools_8c-example.html#a2">chart_data_tools.c</a>, <a class="el" href="chart_doughnut_8c-example.html#a2">chart_doughnut.c</a>, <a class="el" href="chart_line_8c-example.html#a2">chart_line.c</a>, <a class="el" href="chart_pattern_8c-example.html#a8">chart_pattern.c</a>, <a class="el" href="chart_pie_8c-example.html#a2">chart_pie.c</a>, <a class="el" href="chart_radar_8c-example.html#a2">chart_radar.c</a>, <a class="el" href="chart_scatter_8c-example.html#a2">chart_scatter.c</a>, <a class="el" href="chartsheet_8c-example.html#a2">chartsheet.c</a>, <a class="el" href="comments1_8c-example.html#a4">comments1.c</a>, <a class="el" href="comments2_8c-example.html#a11">comments2.c</a>, <a class="el" href="conditional_format2_8c-example.html#a10">conditional_format2.c</a>, <a class="el" href="data_validate_8c-example.html#a2">data_validate.c</a>, <a class="el" href="dates_and_times03_8c-example.html#a8">dates_and_times03.c</a>, <a class="el" href="defined_name_8c-example.html#a7">defined_name.c</a>, <a class="el" href="demo_8c-example.html#a8">demo.c</a>, <a class="el" href="diagonal_border_8c-example.html#a14">diagonal_border.c</a>, <a class="el" href="doc_custom_properties_8c-example.html#a10">doc_custom_properties.c</a>, <a class="el" href="doc_properties_8c-example.html#a8">doc_properties.c</a>, <a class="el" href="format_font_8c-example.html#a9">format_font.c</a>, <a class="el" href="headers_footers_8c-example.html#a7">headers_footers.c</a>, <a class="el" href="hello_8c-example.html#a4">hello.c</a>, <a class="el" href="hide_row_col_8c-example.html#a4">hide_row_col.c</a>, <a class="el" href="hide_sheet_8c-example.html#a5">hide_sheet.c</a>, <a class="el" href="hyperlinks_8c-example.html#a13">hyperlinks.c</a>, <a class="el" href="ignore_errors_8c-example.html#a4">ignore_errors.c</a>, <a class="el" href="images_8c-example.html#a6">images.c</a>, <a class="el" href="macro_8c-example.html#a5">macro.c</a>, <a class="el" href="outline_8c-example.html#a13">outline.c</a>, <a class="el" href="outline_collapsed_8c-example.html#a4">outline_collapsed.c</a>, <a class="el" href="panes_8c-example.html#a17">panes.c</a>, <a class="el" href="tab_colors_8c-example.html#a7">tab_colors.c</a>, <a class="el" href="tutorial1_8c-example.html#a4">tutorial1.c</a>, <a class="el" href="tutorial2_8c-example.html#a8">tutorial2.c</a>, <a class="el" href="tutorial3_8c-example.html#a11">tutorial3.c</a>, <a class="el" href="utf8_8c-example.html#a4">utf8.c</a>, and <a class="el" href="worksheet_protection_8c-example.html#a10">worksheet_protection.c</a>.</dd>
</dl>

</div>
</div>
<a id="ae57117f04c82bef29805ec3eabc219bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae57117f04c82bef29805ec3eabc219bb">&#9670;&nbsp;</a></span>worksheet_write_formula()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_write_formula </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>formula</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__format.html">lxw_format</a> *&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">formula</td><td>Formula string to write to cell. </td></tr>
    <tr><td class="paramname">format</td><td>A pointer to a Format instance or NULL.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_write_formula()</code> function writes a formula or function to the cell specified by <code>row</code> and <code>column</code>:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#ae57117f04c82bef29805ec3eabc219bb">worksheet_write_formula</a>(worksheet, 0, 0, <span class="stringliteral">&quot;=B3 + 6&quot;</span>,                    NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#ae57117f04c82bef29805ec3eabc219bb">worksheet_write_formula</a>(worksheet, 1, 0, <span class="stringliteral">&quot;=SIN(PI()/4)&quot;</span>,               NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#ae57117f04c82bef29805ec3eabc219bb">worksheet_write_formula</a>(worksheet, 2, 0, <span class="stringliteral">&quot;=SUM(A1:A2)&quot;</span>,                NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#ae57117f04c82bef29805ec3eabc219bb">worksheet_write_formula</a>(worksheet, 3, 0, <span class="stringliteral">&quot;=IF(A3&gt;1,\&quot;Yes\&quot;, \&quot;No\&quot;)&quot;</span>,  NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#ae57117f04c82bef29805ec3eabc219bb">worksheet_write_formula</a>(worksheet, 4, 0, <span class="stringliteral">&quot;=AVERAGE(1, 2, 3, 4)&quot;</span>,       NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#ae57117f04c82bef29805ec3eabc219bb">worksheet_write_formula</a>(worksheet, 5, 0, <span class="stringliteral">&quot;=DATEVALUE(\&quot;1-Jan-2013\&quot;)&quot;</span>, NULL);</div>
</div><!-- fragment --><div class="image">
<img src="write_formula01.png" alt=""/>
</div>
<p>The <code>format</code> parameter is used to apply formatting to the cell. This parameter can be <code>NULL</code> to indicate no formatting or it can be a <a class="el" href="format_8h.html">Format</a> object.</p>
<p>Libxlsxwriter doesn't calculate the value of a formula and instead stores a default value of <code>0</code>. The correct formula result is displayed in Excel, as shown in the example above, since it recalculates the formulas when it loads the file. For cases where this is an issue see the <code><a class="el" href="worksheet_8h.html#af474c01f7ec8ac1a01206c9c4a5867af" title="Write a formula to a worksheet cell with a user defined numeric result.">worksheet_write_formula_num()</a></code> function and the discussion in that section.</p>
<p>Formulas must be written with the US style separator/range operator which is a comma (not semi-colon). Therefore a formula with multiple values should be written as follows:</p>
<div class="fragment"><div class="line"><span class="comment">// OK.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#ae57117f04c82bef29805ec3eabc219bb">worksheet_write_formula</a>(worksheet, 0, 0, <span class="stringliteral">&quot;=SUM(1, 2, 3)&quot;</span>, NULL);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// NO. Error on load.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#ae57117f04c82bef29805ec3eabc219bb">worksheet_write_formula</a>(worksheet, 1, 0, <span class="stringliteral">&quot;=SUM(1; 2; 3)&quot;</span>, NULL);</div>
</div><!-- fragment --><p>See also <a class="el" href="working_with_formulas.html">Working with Formulas</a>. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="data_validate_8c-example.html#a5">data_validate.c</a>, <a class="el" href="defined_name_8c-example.html#a8">defined_name.c</a>, <a class="el" href="ignore_errors_8c-example.html#a6">ignore_errors.c</a>, <a class="el" href="outline_8c-example.html#a16">outline.c</a>, <a class="el" href="outline_collapsed_8c-example.html#a7">outline_collapsed.c</a>, <a class="el" href="tutorial1_8c-example.html#a6">tutorial1.c</a>, <a class="el" href="tutorial2_8c-example.html#a10">tutorial2.c</a>, <a class="el" href="tutorial3_8c-example.html#a14">tutorial3.c</a>, and <a class="el" href="worksheet_protection_8c-example.html#a11">worksheet_protection.c</a>.</dd>
</dl>

</div>
</div>
<a id="a8331799b5821d70c442d637ca66dd6e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8331799b5821d70c442d637ca66dd6e7">&#9670;&nbsp;</a></span>worksheet_write_array_formula()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_write_array_formula </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>first_row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>first_col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>last_row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>last_col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>formula</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__format.html">lxw_format</a> *&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">first_row</td><td>The first row of the range. (All zero indexed.) </td></tr>
    <tr><td class="paramname">first_col</td><td>The first column of the range. </td></tr>
    <tr><td class="paramname">last_row</td><td>The last row of the range. </td></tr>
    <tr><td class="paramname">last_col</td><td>The last col of the range. </td></tr>
    <tr><td class="paramname">formula</td><td>Array formula to write to cell. </td></tr>
    <tr><td class="paramname">format</td><td>A pointer to a Format instance or NULL.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_write_array_formula()</code> function writes an array formula to a cell range. In Excel an array formula is a formula that performs a calculation on a set of values.</p>
<p>In Excel an array formula is indicated by a pair of braces around the formula: <code>{=SUM(A1:B1*A2:B2)}</code>.</p>
<p>Array formulas can return a single value or a range or values. For array formulas that return a range of values you must specify the range that the return values will be written to. This is why this function has <code>first_</code> and <code>last_</code> row/column parameters. The <a class="el" href="utility_8h.html#a4dbbdfc9b616195c799dee78e727cecc" title="Convert an Excel A1:B2 range into a (first_row, first_col, last_row, last_col) sequence.">RANGE()</a> macro can also be used to specify the range:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a8331799b5821d70c442d637ca66dd6e7">worksheet_write_array_formula</a>(worksheet, 4, 0, 6, 0,     <span class="stringliteral">&quot;{=TREND(C5:C7,B5:B7)}&quot;</span>, NULL);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Same as above using the RANGE() macro.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a8331799b5821d70c442d637ca66dd6e7">worksheet_write_array_formula</a>(worksheet, <a class="code" href="utility_8h.html#a4dbbdfc9b616195c799dee78e727cecc">RANGE</a>(<span class="stringliteral">&quot;A5:A7&quot;</span>), <span class="stringliteral">&quot;{=TREND(C5:C7,B5:B7)}&quot;</span>, NULL);</div>
</div><!-- fragment --><p>If the array formula returns a single value then the <code>first_</code> and <code>last_</code> parameters should be the same:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a8331799b5821d70c442d637ca66dd6e7">worksheet_write_array_formula</a>(worksheet, 1, 0, 1, 0,     <span class="stringliteral">&quot;{=SUM(B1:C1*B2:C2)}&quot;</span>, NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a8331799b5821d70c442d637ca66dd6e7">worksheet_write_array_formula</a>(worksheet, <a class="code" href="utility_8h.html#a4dbbdfc9b616195c799dee78e727cecc">RANGE</a>(<span class="stringliteral">&quot;A2:A2&quot;</span>), <span class="stringliteral">&quot;{=SUM(B1:C1*B2:C2)}&quot;</span>, NULL);</div>
</div><!-- fragment --> <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="array_formula_8c-example.html#a5">array_formula.c</a>.</dd>
</dl>

</div>
</div>
<a id="afb0b3211160927a3412be28c9364b1b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb0b3211160927a3412be28c9364b1b5">&#9670;&nbsp;</a></span>worksheet_write_datetime()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_write_datetime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__datetime.html">lxw_datetime</a> *&#160;</td>
          <td class="paramname"><em>datetime</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__format.html">lxw_format</a> *&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">datetime</td><td>The datetime to write to the cell. </td></tr>
    <tr><td class="paramname">format</td><td>A pointer to a Format instance or NULL.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code><a class="el" href="worksheet_8h.html#afb0b3211160927a3412be28c9364b1b5" title="Write a date or time to a worksheet cell.">worksheet_write_datetime()</a></code> function can be used to write a date or time to the cell specified by <code>row</code> and <code>column</code>:</p>
 <div class="fragment"><div class="line"><span class="preprocessor">#include &quot;xlsxwriter.h&quot;</span></div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">int</span> main() {</div>
<div class="line"> </div>
<div class="line">    <span class="comment">/* A datetime to display. */</span></div>
<div class="line">    <a class="code" href="structlxw__datetime.html">lxw_datetime</a> datetime = {2013, 2, 28, 12, 0, 0.0};</div>
<div class="line"> </div>
<div class="line">    <span class="comment">/* Create a new workbook and add a worksheet. */</span></div>
<div class="line">    <a class="code" href="structlxw__workbook.html">lxw_workbook</a>  *workbook  = <a class="code" href="workbook_8h.html#a1cf96608a23ee4eb0e8467c15240d00b">workbook_new</a>(<span class="stringliteral">&quot;date_and_times02.xlsx&quot;</span>);</div>
<div class="line">    <a class="code" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet = <a class="code" href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a>(workbook, NULL);</div>
<div class="line"> </div>
<div class="line">    <span class="comment">/* Add a format with date formatting. */</span></div>
<div class="line">    <a class="code" href="structlxw__format.html">lxw_format</a>    *format    = <a class="code" href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a>(workbook);</div>
<div class="line">    <a class="code" href="format_8h.html#af77bbd0003344cb16d455c7fb709e16c">format_set_num_format</a>(format, <span class="stringliteral">&quot;mmm d yyyy hh:mm AM/PM&quot;</span>);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#afb0b3211160927a3412be28c9364b1b5">worksheet_write_datetime</a>(worksheet, 1, 0, &amp;datetime, format);  <span class="comment">// Feb 28 2013 12:00 PM</span></div>
<div class="line"> </div>
<div class="line">    <span class="keywordflow">return</span> <a class="code" href="workbook_8h.html#ad9e7aeebc0fd43562db5bcd527b2ee5e">workbook_close</a>(workbook);</div>
<div class="line">}</div>
</div><!-- fragment --><p>The <code>format</code> parameter should be used to apply formatting to the cell using a <a class="el" href="format_8h.html">Format</a> object as shown above. Without a date format the datetime will appear as a number only.</p>
<p>See <a class="el" href="working_with_dates.html">Working with Dates and Times</a> for more information about handling dates and times in libxlsxwriter. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="dates_and_times02_8c-example.html#a9">dates_and_times02.c</a>, <a class="el" href="dates_and_times03_8c-example.html#a13">dates_and_times03.c</a>, and <a class="el" href="tutorial3_8c-example.html#a12">tutorial3.c</a>.</dd>
</dl>

</div>
</div>
<a id="a9b2ac96ee23574a432f5703eedcaf9a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b2ac96ee23574a432f5703eedcaf9a1">&#9670;&nbsp;</a></span>worksheet_write_url()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_write_url </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>url</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__format.html">lxw_format</a> *&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">url</td><td>The url to write to the cell. </td></tr>
    <tr><td class="paramname">format</td><td>A pointer to a Format instance or NULL.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_write_url()</code> function is used to write a URL/hyperlink to a worksheet cell specified by <code>row</code> and <code>column</code>.</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 0, 0, <span class="stringliteral">&quot;http://libxlsxwriter.github.io&quot;</span>, NULL);</div>
</div><!-- fragment --><div class="image">
<img src="hyperlinks_short.png" alt=""/>
</div>
<p>The <code>format</code> parameter is used to apply formatting to the cell. This parameter can be <code>NULL</code>, in which case the default Excel blue underlined hyperlink style will be used. If required a user defined <a class="el" href="format_8h.html">Format</a> object can be used: underline:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__format.html">lxw_format</a> *url_format   = <a class="code" href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a>(workbook);</div>
<div class="line"> </div>
<div class="line"><a class="code" href="format_8h.html#ad35ee5445826bd93ec1bc0d489fc09db">format_set_underline</a> (url_format, <a class="code" href="format_8h.html#af530d7971d15c164f3fb6bbfede9a39fa76d5bdd1c57c126df937f0b003597e18">LXW_UNDERLINE_SINGLE</a>);</div>
<div class="line"><a class="code" href="format_8h.html#a61981b2080bfe6381ede5358ee05b05c">format_set_font_color</a>(url_format, <a class="code" href="format_8h.html#abeafc6e8222ba9fcfd4f2c2f4e9ea38baedd7412491d9f34fc5f947ada9d196ec">LXW_COLOR_RED</a>);</div>
</div><!-- fragment --><p>The usual web style URI's are supported: <code>http://</code>, <code>https://</code>, <code>ftp://</code> and <code>mailto:</code> :</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 0, 0, <span class="stringliteral">&quot;ftp://www.python.org/&quot;</span>,     NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 1, 0, <span class="stringliteral">&quot;http://www.python.org/&quot;</span>,    NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 2, 0, <span class="stringliteral">&quot;https://www.python.org/&quot;</span>,   NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 3, 0, <span class="stringliteral">&quot;mailto:jmcnamara@cpan.org&quot;</span>, NULL);</div>
</div><!-- fragment --><p>An Excel hyperlink is comprised of two elements: the displayed string and the non-displayed link. By default the displayed string is the same as the link. However, it is possible to overwrite it with any other <code>libxlsxwriter</code> type using the appropriate <code>worksheet_write_*()</code> function. The most common case is to overwrite the displayed link text with another string. To do this we must also match the default URL format using <code><a class="el" href="workbook_8h.html#abd18b07856137e94b34c9aca7e0831b5" title="Get the default URL format used with worksheet_write_url().">workbook_get_default_url_format()</a></code>:</p>
<div class="fragment"><div class="line"><span class="comment">// Write a hyperlink with the default blue underline format.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 2, 0, <span class="stringliteral">&quot;http://libxlsxwriter.github.io&quot;</span>, NULL);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Get the default url format.</span></div>
<div class="line"><a class="code" href="structlxw__format.html">lxw_format</a> *url_format = <a class="code" href="workbook_8h.html#abd18b07856137e94b34c9aca7e0831b5">workbook_get_default_url_format</a>(workbook);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Overwrite the hyperlink with a user defined string and default format.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet, 2, 0, <span class="stringliteral">&quot;Read the documentation.&quot;</span>, url_format);</div>
</div><!-- fragment --><div class="image">
<img src="hyperlinks_short2.png" alt=""/>
</div>
<p>Two local URIs are supported: <code>internal:</code> and <code>external:</code>. These are used for hyperlinks to internal worksheet references or external workbook and worksheet references:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 0, 0, <span class="stringliteral">&quot;internal:Sheet2!A1&quot;</span>,                NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 1, 0, <span class="stringliteral">&quot;internal:Sheet2!B2&quot;</span>,                NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 2, 0, <span class="stringliteral">&quot;internal:Sheet2!A1:B2&quot;</span>,             NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 3, 0, <span class="stringliteral">&quot;internal:&#39;Sales Data&#39;!A1&quot;</span>,          NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 4, 0, <span class="stringliteral">&quot;external:c:\\temp\\foo.xlsx&quot;</span>,       NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 5, 0, <span class="stringliteral">&quot;external:c:\\foo.xlsx#Sheet2!A1&quot;</span>,   NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 6, 0, <span class="stringliteral">&quot;external:..\\foo.xlsx&quot;</span>,             NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 7, 0, <span class="stringliteral">&quot;external:..\\foo.xlsx#Sheet2!A1&quot;</span>,   NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 8, 0, <span class="stringliteral">&quot;external:\\\\NET\\share\\foo.xlsx&quot;</span>, NULL);</div>
</div><!-- fragment --><p>Worksheet references are typically of the form <code>Sheet1!A1</code>. You can also link to a worksheet range using the standard Excel notation: <code>Sheet1!A1:B2</code>.</p>
<p>In external links the workbook and worksheet name must be separated by the <code>#</code> character:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 0, 0, <span class="stringliteral">&quot;external:c:\\foo.xlsx#Sheet2!A1&quot;</span>,   NULL);</div>
</div><!-- fragment --><p>You can also link to a named range in the target worksheet: For example say you have a named range called <code>my_name</code> in the workbook <code>c:\temp\foo.xlsx</code> you could link to it as follows:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 0, 0, <span class="stringliteral">&quot;external:c:\\temp\\foo.xlsx#my_name&quot;</span>, NULL);</div>
</div><!-- fragment --><p>Excel requires that worksheet names containing spaces or non alphanumeric characters are single quoted as follows:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 0, 0, <span class="stringliteral">&quot;internal:&#39;Sales Data&#39;!A1&quot;</span>, NULL);</div>
</div><!-- fragment --><p>Links to network files are also supported. Network files normally begin with two back slashes as follows <code>\\NETWORK\etc</code>. In order to represent this in a C string literal the backslashes should be escaped: </p><div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 0, 0, <span class="stringliteral">&quot;external:\\\\NET\\share\\foo.xlsx&quot;</span>, NULL);</div>
</div><!-- fragment --><p>Alternatively, you can use Unix style forward slashes. These are translated internally to backslashes:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 0, 0, <span class="stringliteral">&quot;external:c:/temp/foo.xlsx&quot;</span>,     NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a>(worksheet, 1, 0, <span class="stringliteral">&quot;external://NET/share/foo.xlsx&quot;</span>, NULL);</div>
</div><!-- fragment --><p><b>Note:</b></p>
<p>libxlsxwriter will escape the following characters in URLs as required by Excel: <code>\s " &lt; &gt; \ [ ] ^ { }</code>. Existing URL <code>%xx</code> style escapes in the string are ignored to allow for user-escaped strings.</p>
<p><b>Note:</b></p>
<p>The maximum allowable URL length in recent versions of Excel is 2079 characters. In older versions of Excel (and libxlsxwriter &lt;= 0.8.8) the limit was 255 characters. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="hyperlinks_8c-example.html#a12">hyperlinks.c</a>.</dd>
</dl>

</div>
</div>
<a id="af14fc7b20ba84e56510caf15c577cf8c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af14fc7b20ba84e56510caf15c577cf8c">&#9670;&nbsp;</a></span>worksheet_write_boolean()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_write_boolean </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__format.html">lxw_format</a> *&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">value</td><td>The boolean value to write to the cell. </td></tr>
    <tr><td class="paramname">format</td><td>A pointer to a Format instance or NULL.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>Write an Excel boolean to the cell specified by <code>row</code> and <code>column</code>:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#af14fc7b20ba84e56510caf15c577cf8c">worksheet_write_boolean</a>(worksheet, 2, 2, 0, my_format);</div>
</div><!-- fragment --> 
</div>
</div>
<a id="a8c81b7e398d686a1fe17e76ef4485f34"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c81b7e398d686a1fe17e76ef4485f34">&#9670;&nbsp;</a></span>worksheet_write_blank()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_write_blank </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__format.html">lxw_format</a> *&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">format</td><td>A pointer to a Format instance or NULL.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>Write a blank cell specified by <code>row</code> and <code>column</code>:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a8c81b7e398d686a1fe17e76ef4485f34">worksheet_write_blank</a>(worksheet, 1, 1, border_format);</div>
</div><!-- fragment --><p>This function is used to add formatting to a cell which doesn't contain a string or number value.</p>
<p>Excel differentiates between an "Empty" cell and a "Blank" cell. An Empty cell is a cell which doesn't contain data or formatting whilst a Blank cell doesn't contain data but does contain formatting. Excel stores Blank cells but ignores Empty cells.</p>
<p>As such, if you write an empty cell without formatting it is ignored. </p>

</div>
</div>
<a id="af474c01f7ec8ac1a01206c9c4a5867af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af474c01f7ec8ac1a01206c9c4a5867af">&#9670;&nbsp;</a></span>worksheet_write_formula_num()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_write_formula_num </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>formula</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__format.html">lxw_format</a> *&#160;</td>
          <td class="paramname"><em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">formula</td><td>Formula string to write to cell. </td></tr>
    <tr><td class="paramname">format</td><td>A pointer to a Format instance or NULL. </td></tr>
    <tr><td class="paramname">result</td><td>A user defined numeric result for the formula.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_write_formula_num()</code> function writes a formula or Excel function to the cell specified by <code>row</code> and <code>column</code> with a user defined numeric result:</p>
<div class="fragment"><div class="line"><span class="comment">// Required as a workaround only.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#af474c01f7ec8ac1a01206c9c4a5867af">worksheet_write_formula_num</a>(worksheet, 0, 0, <span class="stringliteral">&quot;=1 + 2&quot;</span>, NULL, 3);</div>
</div><!-- fragment --><p>Libxlsxwriter doesn't calculate the value of a formula and instead stores the value <code>0</code> as the formula result. It then sets a global flag in the XLSX file to say that all formulas and functions should be recalculated when the file is opened.</p>
<p>This is the method recommended in the Excel documentation and in general it works fine with spreadsheet applications.</p>
<p>However, applications that don't have a facility to calculate formulas, such as Excel Viewer, or some mobile applications will only display the <code>0</code> results.</p>
<p>If required, the <code>worksheet_write_formula_num()</code> function can be used to specify a formula and its result.</p>
<p>This function is rarely required and is only provided for compatibility with some third party applications. For most applications the <a class="el" href="worksheet_8h.html#ae57117f04c82bef29805ec3eabc219bb" title="Write a formula to a worksheet cell.">worksheet_write_formula()</a> function is the recommended way of writing formulas.</p>
<p>See also <a class="el" href="working_with_formulas.html">Working with Formulas</a>. </p>

</div>
</div>
<a id="ae55a1d5b4956a8e07ff721ecd80dde95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae55a1d5b4956a8e07ff721ecd80dde95">&#9670;&nbsp;</a></span>worksheet_write_formula_str()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_write_formula_str </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>formula</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__format.html">lxw_format</a> *&#160;</td>
          <td class="paramname"><em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">formula</td><td>Formula string to write to cell. </td></tr>
    <tr><td class="paramname">format</td><td>A pointer to a Format instance or NULL. </td></tr>
    <tr><td class="paramname">result</td><td>A user defined string result for the formula.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_write_formula_str()</code> function writes a formula or Excel function to the cell specified by <code>row</code> and <code>column</code> with a user defined string result:</p>
<div class="fragment"><div class="line"><span class="comment">// The example formula is A &amp; B -&gt; AB.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#ae55a1d5b4956a8e07ff721ecd80dde95">worksheet_write_formula_str</a>(worksheet, 0, 0, <span class="stringliteral">&quot;=\&quot;A\&quot; &amp; \&quot;B\&quot;&quot;</span>, NULL, <span class="stringliteral">&quot;AB&quot;</span>);</div>
</div><!-- fragment --><p>The <code>worksheet_write_formula_str()</code> function is similar to the <code>worksheet_write_formula_num()</code> function except it writes a string result instead or a numeric result. See <code><a class="el" href="worksheet_8h.html#af474c01f7ec8ac1a01206c9c4a5867af" title="Write a formula to a worksheet cell with a user defined numeric result.">worksheet_write_formula_num()</a></code> for more details on why/when these functions are required.</p>
<p>One place where the <code>worksheet_write_formula_str()</code> function may be required is to specify an empty result which will force a recalculation of the formula when loaded in LibreOffice.</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#ae55a1d5b4956a8e07ff721ecd80dde95">worksheet_write_formula_str</a>(worksheet, 0, 0, <span class="stringliteral">&quot;=Sheet1!$A$1&quot;</span>, NULL, <span class="stringliteral">&quot;&quot;</span>);</div>
</div><!-- fragment --><p>See the FAQ <a class="el" href="faq.html#faq_formula_zero">Q. Why do my formulas show a zero result in some, non-Excel applications?</a>.</p>
<p>See also <a class="el" href="working_with_formulas.html">Working with Formulas</a>. </p>

</div>
</div>
<a id="a62bf44845ce9dcc505bf228999db5afa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62bf44845ce9dcc505bf228999db5afa">&#9670;&nbsp;</a></span>worksheet_write_rich_string()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_write_rich_string </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> *&#160;</td>
          <td class="paramname"><em>rich_string</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__format.html">lxw_format</a> *&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">rich_string</td><td>An array of format/string <a class="el" href="structlxw__rich__string__tuple.html" title="Struct to represent a rich string format/string pair.">lxw_rich_string_tuple</a> fragments. </td></tr>
    <tr><td class="paramname">format</td><td>A pointer to a Format instance or NULL.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_write_rich_string()</code> function is used to write strings with multiple formats. For example to write the string 'This is <b>bold</b> and this is <em>italic</em>' you would use the following:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__format.html">lxw_format</a> *bold = <a class="code" href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a>(workbook);</div>
<div class="line"><a class="code" href="format_8h.html#a85e1b0baf44b445b65894e48722aec14">format_set_bold</a>(bold);</div>
<div class="line"> </div>
<div class="line"><a class="code" href="structlxw__format.html">lxw_format</a> *italic = <a class="code" href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a>(workbook);</div>
<div class="line"><a class="code" href="format_8h.html#a19cbd7c34692eb7fb35a7411432d836e">format_set_italic</a>(italic);</div>
<div class="line"> </div>
<div class="line"><a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment11 = {.<a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = NULL,   .string = <span class="stringliteral">&quot;This is &quot;</span>     };</div>
<div class="line"><a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment12 = {.<a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = bold,   .string = <span class="stringliteral">&quot;bold&quot;</span>         };</div>
<div class="line"><a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment13 = {.<a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = NULL,   .string = <span class="stringliteral">&quot; and this is &quot;</span>};</div>
<div class="line"><a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> fragment14 = {.<a class="code" href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">format</a> = italic, .string = <span class="stringliteral">&quot;italic&quot;</span>       };</div>
<div class="line"> </div>
<div class="line"><a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> *rich_string1[] = {&amp;fragment11, &amp;fragment12,</div>
<div class="line">                                         &amp;fragment13, &amp;fragment14, NULL};</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a62bf44845ce9dcc505bf228999db5afa">worksheet_write_rich_string</a>(worksheet, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;A1&quot;</span>), rich_string1, NULL);</div>
</div><!-- fragment --><div class="image">
<img src="rich_strings_small.png" alt=""/>
</div>
<p>The basic rule is to break the string into fragments and put a <a class="el" href="structlxw__format.html" title="Struct to represent the formatting properties of an Excel format.">lxw_format</a> object before the fragment that you want to format. So if we look at the above example again:</p>
<p>This is <b>bold</b> and this is <em>italic</em></p>
<p>The would be broken down into 4 fragments: </p><pre class="fragment"> default: |This is |
 bold:    |bold|
 default: | and this is |
 italic:  |italic|
</pre><p>This in then converted to the <a class="el" href="structlxw__rich__string__tuple.html" title="Struct to represent a rich string format/string pair.">lxw_rich_string_tuple</a> fragments shown in the example above. For the default format we use <code>NULL</code>.</p>
<p>The fragments are passed to <code>worksheet_write_rich_string()</code> as a <code>NULL</code> terminated array:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> *rich_string1[] = {&amp;fragment11, &amp;fragment12,</div>
<div class="line">                                         &amp;fragment13, &amp;fragment14, NULL};</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a62bf44845ce9dcc505bf228999db5afa">worksheet_write_rich_string</a>(worksheet, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;A1&quot;</span>), rich_string1, NULL);</div>
</div><!-- fragment --><p><b>Note</b>: Excel doesn't allow the use of two consecutive formats in a rich string or an empty string fragment. For either of these conditions a warning is raised and the input to <code>worksheet_write_rich_string()</code> is ignored. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="merge_rich_string_8c-example.html#a17">merge_rich_string.c</a>, and <a class="el" href="rich_strings_8c-example.html#a18">rich_strings.c</a>.</dd>
</dl>

</div>
</div>
<a id="abd1728d105365c0113e15f40c6bb1b27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd1728d105365c0113e15f40c6bb1b27">&#9670;&nbsp;</a></span>worksheet_write_comment()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_write_comment </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>string</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">string</td><td>The comment string to be written.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_write_comment()</code> function is used to add a comment to a cell. A comment is indicated in Excel by a small red triangle in the upper right-hand corner of the cell. Moving the cursor over the red triangle will reveal the comment.</p>
<p>The following example shows how to add a comment to a cell:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#abd1728d105365c0113e15f40c6bb1b27">worksheet_write_comment</a>(worksheet, 0, 0, <span class="stringliteral">&quot;This is a comment&quot;</span>);</div>
</div><!-- fragment --><div class="image">
<img src="comments1.png" alt=""/>
</div>
<p>See also <a class="el" href="working_with_comments.html">Working with Cell Comments</a> </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="comments1_8c-example.html#a5">comments1.c</a>, and <a class="el" href="comments2_8c-example.html#a13">comments2.c</a>.</dd>
</dl>

</div>
</div>
<a id="a158dadac385cd1007994e5478b7b2aa7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a158dadac385cd1007994e5478b7b2aa7">&#9670;&nbsp;</a></span>worksheet_write_comment_opt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_write_comment_opt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__comment__options.html">lxw_comment_options</a> *&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">string</td><td>The comment string to be written. </td></tr>
    <tr><td class="paramname">options</td><td><a class="el" href="structlxw__comment__options.html" title="Options for inserted comments.">lxw_comment_options</a> to control position and format of the comment.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_write_comment_opt()</code> function is used to add a comment to a cell with option that control the position, format and metadata of the comment. A comment is indicated in Excel by a small red triangle in the upper right-hand corner of the cell. Moving the cursor over the red triangle will reveal the comment.</p>
<p>The following example shows how to add a comment to a cell with options:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__comment__options.html">lxw_comment_options</a> options = {.visible = <a class="code" href="worksheet_8h.html#aad352c6cf9a5359d4cda51839a91c7d2a3d78b49cb38d25b6d5473a1c0112404d">LXW_COMMENT_DISPLAY_VISIBLE</a>};</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a>(worksheet, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C6&quot;</span>), <span class="stringliteral">&quot;Hello.&quot;</span>, &amp;options);</div>
</div><!-- fragment --><p>The following options are available in <a class="el" href="structlxw__comment__options.html" title="Options for inserted comments.">lxw_comment_options</a>:</p>
<ul>
<li><code>author</code></li>
<li><code>visible</code></li>
<li><code>width</code></li>
<li><code>height</code></li>
<li><code>x_scale</code></li>
<li><code>y_scale</code></li>
<li><code>color</code></li>
<li><code>font_name</code></li>
<li><code>font_size</code></li>
<li><code>start_row</code></li>
<li><code>start_col</code></li>
<li><code>x_offset</code></li>
<li><code>y_offset</code></li>
</ul>
<div class="image">
<img src="comments2.png" alt=""/>
</div>
<p>Comment options are explained in detail in the <a class="el" href="working_with_comments.html#ww_comments_properties">Setting Comment Properties</a> section of the docs. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="comments2_8c-example.html#a17">comments2.c</a>.</dd>
</dl>

</div>
</div>
<a id="ab9b7fb95e1bd9b0da70befd0d37a9173"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9b7fb95e1bd9b0da70befd0d37a9173">&#9670;&nbsp;</a></span>worksheet_set_row()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_set_row </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__format.html">lxw_format</a> *&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">height</td><td>The row height. </td></tr>
    <tr><td class="paramname">format</td><td>A pointer to a Format instance or NULL.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_set_row()</code> function is used to change the default properties of a row. The most common use for this function is to change the height of a row:</p>
<div class="fragment"><div class="line"><span class="comment">// Set the height of Row 1 to 20.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet, 0, 20, NULL);</div>
</div><!-- fragment --><p>The other common use for <code>worksheet_set_row()</code> is to set the a <a class="el" href="format_8h.html">Format</a> for all cells in the row:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__format.html">lxw_format</a> *bold = <a class="code" href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a>(workbook);</div>
<div class="line"><a class="code" href="format_8h.html#a85e1b0baf44b445b65894e48722aec14">format_set_bold</a>(bold);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Set the header row to bold.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet, 0, 15, bold);</div>
</div><!-- fragment --><p>If you wish to set the format of a row without changing the height you can pass the default row height of <a class="el" href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a> = 15:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet, 0, <a class="code" href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a>, format);</div>
<div class="line"><a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet, 0, 15, format); <span class="comment">// Same as above.</span></div>
</div><!-- fragment --><p>The <code>format</code> parameter will be applied to any cells in the row that don't have a format. As with Excel the row format is overridden by an explicit cell format. For example:</p>
<div class="fragment"><div class="line"><span class="comment">// Row 1 has format1.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet, 0, 15, format1);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Cell A1 in Row 1 defaults to format1.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet, 0, 0, <span class="stringliteral">&quot;Hello&quot;</span>, NULL);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Cell B1 in Row 1 keeps format2.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet, 0, 1, <span class="stringliteral">&quot;Hello&quot;</span>, format2);</div>
</div><!-- fragment --> <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="comments2_8c-example.html#a10">comments2.c</a>, <a class="el" href="data_validate_8c-example.html#a20">data_validate.c</a>, <a class="el" href="hide_row_col_8c-example.html#a7">hide_row_col.c</a>, <a class="el" href="merge_range_8c-example.html#a15">merge_range.c</a>, <a class="el" href="outline_8c-example.html#a17">outline.c</a>, <a class="el" href="outline_collapsed_8c-example.html#a17">outline_collapsed.c</a>, and <a class="el" href="panes_8c-example.html#a15">panes.c</a>.</dd>
</dl>

</div>
</div>
<a id="abbc2de45e0aa84341fb10a98778b3807"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbc2de45e0aa84341fb10a98778b3807">&#9670;&nbsp;</a></span>worksheet_set_row_opt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_set_row_opt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__format.html">lxw_format</a> *&#160;</td>
          <td class="paramname"><em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__row__col__options.html">lxw_row_col_options</a> *&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">height</td><td>The row height. </td></tr>
    <tr><td class="paramname">format</td><td>A pointer to a Format instance or NULL. </td></tr>
    <tr><td class="paramname">options</td><td>Optional row parameters: hidden, level, collapsed.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_set_row_opt()</code> function is the same as <code><a class="el" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173" title="Set the properties for a row of cells.">worksheet_set_row()</a></code> with an additional <code>options</code> parameter.</p>
<p>The <code>options</code> parameter is a <a class="el" href="structlxw__row__col__options.html" title="Options for rows and columns.">lxw_row_col_options</a> struct. It has the following members:</p>
<ul>
<li><code>hidden</code></li>
<li><code>level</code></li>
<li><code>collapsed</code></li>
</ul>
<p>The <code>"hidden"</code> option is used to hide a row. This can be used, for example, to hide intermediary steps in a complicated calculation:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__row__col__options.html">lxw_row_col_options</a> options1 = {.<a class="code" href="structlxw__row__col__options.html#a0e46063d954292f4018ecb91621b7562">hidden</a> = 1, .level = 0, .collapsed = 0};</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Hide the fourth and fifth (zero indexed) rows.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#abbc2de45e0aa84341fb10a98778b3807">worksheet_set_row_opt</a>(worksheet, 3,  <a class="code" href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a>, NULL, &amp;options1);</div>
<div class="line"><a class="code" href="worksheet_8h.html#abbc2de45e0aa84341fb10a98778b3807">worksheet_set_row_opt</a>(worksheet, 4,  <a class="code" href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a>, NULL, &amp;options1);</div>
</div><!-- fragment --><div class="image">
<img src="hide_row_col2.png" alt=""/>
</div>
<p>The <code>"hidden"</code>, <code>"level"</code>, and <code>"collapsed"</code>, options can also be used to create Outlines and Grouping. See <a class="el" href="working_with_outlines.html">Working with Outlines and Grouping</a>.</p>
<div class="fragment"><div class="line"><span class="comment">// The option structs with the outline level set.</span></div>
<div class="line"><a class="code" href="structlxw__row__col__options.html">lxw_row_col_options</a> options1 = {.<a class="code" href="structlxw__row__col__options.html#a0e46063d954292f4018ecb91621b7562">hidden</a> = 0, .level = 2, .collapsed = 0};</div>
<div class="line"><a class="code" href="structlxw__row__col__options.html">lxw_row_col_options</a> options2 = {.<a class="code" href="structlxw__row__col__options.html#a0e46063d954292f4018ecb91621b7562">hidden</a> = 0, .level = 1, .collapsed = 0};</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"><span class="comment">// Set the row options with the outline level.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#abbc2de45e0aa84341fb10a98778b3807">worksheet_set_row_opt</a>(worksheet, 1,  <a class="code" href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a>, NULL, &amp;options1);</div>
<div class="line"><a class="code" href="worksheet_8h.html#abbc2de45e0aa84341fb10a98778b3807">worksheet_set_row_opt</a>(worksheet, 2,  <a class="code" href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a>, NULL, &amp;options1);</div>
<div class="line"><a class="code" href="worksheet_8h.html#abbc2de45e0aa84341fb10a98778b3807">worksheet_set_row_opt</a>(worksheet, 3,  <a class="code" href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a>, NULL, &amp;options1);</div>
<div class="line"><a class="code" href="worksheet_8h.html#abbc2de45e0aa84341fb10a98778b3807">worksheet_set_row_opt</a>(worksheet, 4,  <a class="code" href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a>, NULL, &amp;options1);</div>
<div class="line"><a class="code" href="worksheet_8h.html#abbc2de45e0aa84341fb10a98778b3807">worksheet_set_row_opt</a>(worksheet, 5,  <a class="code" href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a>, NULL, &amp;options2);</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#abbc2de45e0aa84341fb10a98778b3807">worksheet_set_row_opt</a>(worksheet, 6,  <a class="code" href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a>, NULL, &amp;options1);</div>
<div class="line"><a class="code" href="worksheet_8h.html#abbc2de45e0aa84341fb10a98778b3807">worksheet_set_row_opt</a>(worksheet, 7,  <a class="code" href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a>, NULL, &amp;options1);</div>
<div class="line"><a class="code" href="worksheet_8h.html#abbc2de45e0aa84341fb10a98778b3807">worksheet_set_row_opt</a>(worksheet, 8,  <a class="code" href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a>, NULL, &amp;options1);</div>
<div class="line"><a class="code" href="worksheet_8h.html#abbc2de45e0aa84341fb10a98778b3807">worksheet_set_row_opt</a>(worksheet, 9,  <a class="code" href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a>, NULL, &amp;options1);</div>
<div class="line"><a class="code" href="worksheet_8h.html#abbc2de45e0aa84341fb10a98778b3807">worksheet_set_row_opt</a>(worksheet, 10, <a class="code" href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a>, NULL, &amp;options2);</div>
</div><!-- fragment --><div class="image">
<img src="outline1.png" alt=""/>
</div>
 <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="outline_8c-example.html#a11">outline.c</a>, and <a class="el" href="outline_collapsed_8c-example.html#a15">outline_collapsed.c</a>.</dd>
</dl>

</div>
</div>
<a id="a9656e4e05d3787eee6b3e4d8e82d9b7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9656e4e05d3787eee6b3e4d8e82d9b7f">&#9670;&nbsp;</a></span>worksheet_set_column()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_set_column </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>first_col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>last_col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__format.html">lxw_format</a> *&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">first_col</td><td>The zero indexed first column. </td></tr>
    <tr><td class="paramname">last_col</td><td>The zero indexed last column. </td></tr>
    <tr><td class="paramname">width</td><td>The width of the column(s). </td></tr>
    <tr><td class="paramname">format</td><td>A pointer to a Format instance or NULL.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_set_column()</code> function can be used to change the default properties of a single column or a range of columns:</p>
<div class="fragment"><div class="line"><span class="comment">// Width of columns B:D set to 30.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet, 1, 3, 30, NULL);</div>
</div><!-- fragment --><p>If <code>worksheet_set_column()</code> is applied to a single column the value of <code>first_col</code> and <code>last_col</code> should be the same:</p>
<div class="fragment"><div class="line"><span class="comment">// Width of column B set to 30.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet, 1, 1, 30, NULL);</div>
</div><!-- fragment --><p>It is also possible, and generally clearer, to specify a column range using the form of <code><a class="el" href="utility_8h.html#a189672bfa9c380a28d8db8c40de17fe8" title="Convert an Excel A:B column range into a (col1, col2) pair.">COLS()</a></code> macro:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet, 4, 4, 20, NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet, 5, 8, 30, NULL);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Same as the examples above but clearer.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet, <a class="code" href="utility_8h.html#a189672bfa9c380a28d8db8c40de17fe8">COLS</a>(<span class="stringliteral">&quot;E:E&quot;</span>), 20, NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet, <a class="code" href="utility_8h.html#a189672bfa9c380a28d8db8c40de17fe8">COLS</a>(<span class="stringliteral">&quot;F:H&quot;</span>), 30, NULL);</div>
</div><!-- fragment --><p>The <code>width</code> parameter sets the column width in the same units used by Excel which is: the number of characters in the default font. The default width is 8.43 in the default font of Calibri 11. The actual relationship between a string width and a column width in Excel is complex. See the <a href="https://support.microsoft.com/en-us/kb/214123">following explanation of column widths</a> from the Microsoft support documentation for more details.</p>
<p>There is no way to specify "AutoFit" for a column in the Excel file format. This feature is only available at runtime from within Excel. It is possible to simulate "AutoFit" in your application by tracking the maximum width of the data in the column as your write it and then adjusting the column width at the end.</p>
<p>As usual the <a class="el" href="format_8h.html">format.h</a> <code>format</code> parameter is optional. If you wish to set the format without changing the width you can pass a default column width of <a class="el" href="worksheet_8h.html#a3df7073ab35462516525d28975286994">LXW_DEF_COL_WIDTH</a> = 8.43:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__format.html">lxw_format</a> *bold = <a class="code" href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a>(workbook);</div>
<div class="line"><a class="code" href="format_8h.html#a85e1b0baf44b445b65894e48722aec14">format_set_bold</a>(bold);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Set the first column to bold.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet, 0, 0, <a class="code" href="worksheet_8h.html#a3df7073ab35462516525d28975286994">LXW_DEF_COL_WIDTH</a>, bold);</div>
</div><!-- fragment --><p>The <code>format</code> parameter will be applied to any cells in the column that don't have a format. For example:</p>
<div class="fragment"><div class="line"><span class="comment">// Column 1 has format1.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet, <a class="code" href="utility_8h.html#a189672bfa9c380a28d8db8c40de17fe8">COLS</a>(<span class="stringliteral">&quot;A:A&quot;</span>), 8.43, format1);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Cell A1 in column 1 defaults to format1.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet, 0, 0, <span class="stringliteral">&quot;Hello&quot;</span>, NULL);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Cell A2 in column 1 keeps format2.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet, 1, 0, <span class="stringliteral">&quot;Hello&quot;</span>, format2);</div>
</div><!-- fragment --><p>As in Excel a row format takes precedence over a default column format:</p>
<div class="fragment"><div class="line"> <span class="comment">// Row 1 has format1.</span></div>
<div class="line"> <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet, 0, 15, format1);</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Col 1 has format2.</span></div>
<div class="line"> <a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet, <a class="code" href="utility_8h.html#a189672bfa9c380a28d8db8c40de17fe8">COLS</a>(<span class="stringliteral">&quot;A:A&quot;</span>), 8.43, format2);</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Cell A1 defaults to format1, the row format.</span></div>
<div class="line"> <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet, 0, 0, <span class="stringliteral">&quot;Hello&quot;</span>, NULL);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Cell A2 keeps format2, the column format.</span></div>
<div class="line"> <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet, 1, 0, <span class="stringliteral">&quot;Hello&quot;</span>, NULL);</div>
</div><!-- fragment --> <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="anatomy_8c-example.html#a8">anatomy.c</a>, <a class="el" href="comments2_8c-example.html#a9">comments2.c</a>, <a class="el" href="data_validate_8c-example.html#a19">data_validate.c</a>, <a class="el" href="dates_and_times01_8c-example.html#a7">dates_and_times01.c</a>, <a class="el" href="dates_and_times02_8c-example.html#a8">dates_and_times02.c</a>, <a class="el" href="dates_and_times03_8c-example.html#a9">dates_and_times03.c</a>, <a class="el" href="defined_name_8c-example.html#a6">defined_name.c</a>, <a class="el" href="demo_8c-example.html#a7">demo.c</a>, <a class="el" href="doc_custom_properties_8c-example.html#a9">doc_custom_properties.c</a>, <a class="el" href="doc_properties_8c-example.html#a7">doc_properties.c</a>, <a class="el" href="format_font_8c-example.html#a4">format_font.c</a>, <a class="el" href="format_num_format_8c-example.html#a4">format_num_format.c</a>, <a class="el" href="headers_footers_8c-example.html#a6">headers_footers.c</a>, <a class="el" href="hide_sheet_8c-example.html#a6">hide_sheet.c</a>, <a class="el" href="hyperlinks_8c-example.html#a11">hyperlinks.c</a>, <a class="el" href="ignore_errors_8c-example.html#a10">ignore_errors.c</a>, <a class="el" href="images_8c-example.html#a4">images.c</a>, <a class="el" href="merge_range_8c-example.html#a14">merge_range.c</a>, <a class="el" href="outline_8c-example.html#a9">outline.c</a>, <a class="el" href="outline_collapsed_8c-example.html#a2">outline_collapsed.c</a>, <a class="el" href="panes_8c-example.html#a14">panes.c</a>, <a class="el" href="rich_strings_8c-example.html#a15">rich_strings.c</a>, <a class="el" href="tutorial3_8c-example.html#a10">tutorial3.c</a>, and <a class="el" href="worksheet_protection_8c-example.html#a8">worksheet_protection.c</a>.</dd>
</dl>

</div>
</div>
<a id="a52c4c145f684c5b4dcd2ed304d1fe907"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52c4c145f684c5b4dcd2ed304d1fe907">&#9670;&nbsp;</a></span>worksheet_set_column_opt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_set_column_opt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>first_col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>last_col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__format.html">lxw_format</a> *&#160;</td>
          <td class="paramname"><em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__row__col__options.html">lxw_row_col_options</a> *&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">first_col</td><td>The zero indexed first column. </td></tr>
    <tr><td class="paramname">last_col</td><td>The zero indexed last column. </td></tr>
    <tr><td class="paramname">width</td><td>The width of the column(s). </td></tr>
    <tr><td class="paramname">format</td><td>A pointer to a Format instance or NULL. </td></tr>
    <tr><td class="paramname">options</td><td>Optional row parameters: hidden, level, collapsed.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_set_column_opt()</code> function is the same as <code><a class="el" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f" title="Set the properties for one or more columns of cells.">worksheet_set_column()</a></code> with an additional <code>options</code> parameter.</p>
<p>The <code>options</code> parameter is a <a class="el" href="structlxw__row__col__options.html" title="Options for rows and columns.">lxw_row_col_options</a> struct. It has the following members:</p>
<ul>
<li><code>hidden</code></li>
<li><code>level</code></li>
<li><code>collapsed</code></li>
</ul>
<p>The <code>"hidden"</code> option is used to hide a column. This can be used, for example, to hide intermediary steps in a complicated calculation:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__row__col__options.html">lxw_row_col_options</a> options1 = {.<a class="code" href="structlxw__row__col__options.html#a0e46063d954292f4018ecb91621b7562">hidden</a> = 1, .level = 0, .collapsed = 0};</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a52c4c145f684c5b4dcd2ed304d1fe907">worksheet_set_column_opt</a>(worksheet, <a class="code" href="utility_8h.html#a189672bfa9c380a28d8db8c40de17fe8">COLS</a>(<span class="stringliteral">&quot;D:E&quot;</span>),  <a class="code" href="worksheet_8h.html#a3df7073ab35462516525d28975286994">LXW_DEF_COL_WIDTH</a>, NULL, &amp;options1);</div>
</div><!-- fragment --><div class="image">
<img src="hide_row_col3.png" alt=""/>
</div>
<p>The <code>"hidden"</code>, <code>"level"</code>, and <code>"collapsed"</code>, options can also be used to create Outlines and Grouping. See <a class="el" href="working_with_outlines.html">Working with Outlines and Grouping</a>.</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__row__col__options.html">lxw_row_col_options</a> options1 = {.<a class="code" href="structlxw__row__col__options.html#a0e46063d954292f4018ecb91621b7562">hidden</a> = 0, .level = 1, .collapsed = 0};</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a52c4c145f684c5b4dcd2ed304d1fe907">worksheet_set_column_opt</a>(worksheet, <a class="code" href="utility_8h.html#a189672bfa9c380a28d8db8c40de17fe8">COLS</a>(<span class="stringliteral">&quot;B:G&quot;</span>),  5, NULL, &amp;options1);</div>
</div><!-- fragment --><div class="image">
<img src="outline8.png" alt=""/>
</div>
 <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="hide_row_col_8c-example.html#a10">hide_row_col.c</a>, <a class="el" href="outline_8c-example.html#a18">outline.c</a>, and <a class="el" href="outline_collapsed_8c-example.html#a18">outline_collapsed.c</a>.</dd>
</dl>

</div>
</div>
<a id="a4529d77bcefcf478b8209f46fe730f6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4529d77bcefcf478b8209f46fe730f6f">&#9670;&nbsp;</a></span>worksheet_insert_image()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_insert_image </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">filename</td><td>The image filename, with path if required.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>This function can be used to insert a image into a worksheet. The image can be in PNG, JPEG or BMP format:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a4529d77bcefcf478b8209f46fe730f6f">worksheet_insert_image</a>(worksheet, 2, 1, <span class="stringliteral">&quot;logo.png&quot;</span>);</div>
</div><!-- fragment --><div class="image">
<img src="insert_image.png" alt=""/>
</div>
<p>The <code><a class="el" href="worksheet_8h.html#a0b05e75e2c2a5c3452374714cdb2b79b" title="Insert an image in a worksheet cell, with options.">worksheet_insert_image_opt()</a></code> function takes additional optional parameters to position and scale the image, see below.</p>
<p><b>Note</b>: The scaling of a image may be affected if is crosses a row that has its default height changed due to a font that is larger than the default font size or that has text wrapping turned on. To avoid this you should explicitly set the height of the row using <code><a class="el" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173" title="Set the properties for a row of cells.">worksheet_set_row()</a></code> if it crosses an inserted image. See <a class="el" href="working_with_object_positioning.html">Working with Object Positioning</a>.</p>
<p>BMP images are only supported for backward compatibility. In general it is best to avoid BMP images since they aren't compressed. If used, BMP images must be 24 bit, true color, bitmaps. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="demo_8c-example.html#a10">demo.c</a>, and <a class="el" href="images_8c-example.html#a8">images.c</a>.</dd>
</dl>

</div>
</div>
<a id="a0b05e75e2c2a5c3452374714cdb2b79b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b05e75e2c2a5c3452374714cdb2b79b">&#9670;&nbsp;</a></span>worksheet_insert_image_opt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_insert_image_opt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__image__options.html">lxw_image_options</a> *&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">filename</td><td>The image filename, with path if required. </td></tr>
    <tr><td class="paramname">options</td><td>Optional image parameters.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_insert_image_opt()</code> function is like <code><a class="el" href="worksheet_8h.html#a4529d77bcefcf478b8209f46fe730f6f" title="Insert an image in a worksheet cell.">worksheet_insert_image()</a></code> function except that it takes an optional <a class="el" href="structlxw__image__options.html" title="Options for inserted images.">lxw_image_options</a> struct to scale and position the image:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__image__options.html">lxw_image_options</a> options = {.<a class="code" href="structlxw__comment__options.html#a85ea5b7a9deceb6b5dd9b1580b49b5a5">x_offset</a> = 30,  .y_offset = 10,</div>
<div class="line">                            .x_scale  = 0.5, .y_scale  = 0.5};</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a0b05e75e2c2a5c3452374714cdb2b79b">worksheet_insert_image_opt</a>(worksheet, 2, 1, <span class="stringliteral">&quot;logo.png&quot;</span>, &amp;options);</div>
</div><!-- fragment --><div class="image">
<img src="insert_image_opt.png" alt=""/>
</div>
<p>The <code>url</code> field of <a class="el" href="structlxw__image__options.html" title="Options for inserted images.">lxw_image_options</a> can be use to used to add a hyperlink to an image:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__image__options.html">lxw_image_options</a> options = {.<a class="code" href="structlxw__image__options.html#a0c023a71168ff25274cfe41ac5403a99">url</a> = <span class="stringliteral">&quot;https://github.com/jmcnamara&quot;</span>};</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a0b05e75e2c2a5c3452374714cdb2b79b">worksheet_insert_image_opt</a>(worksheet, 3, 1, <span class="stringliteral">&quot;logo.png&quot;</span>, &amp;options);</div>
</div><!-- fragment --><p>The supported URL formats are the same as those supported by the <code><a class="el" href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url()</a></code> method and the same rules/limits apply.</p>
<p>The <code>tip</code> field of <a class="el" href="structlxw__image__options.html" title="Options for inserted images.">lxw_image_options</a> can be use to used to add a mouseover tip to the hyperlink:</p>
<div class="fragment"><div class="line"> <a class="code" href="structlxw__image__options.html">lxw_image_options</a> options = {.<a class="code" href="structlxw__image__options.html#a0c023a71168ff25274cfe41ac5403a99">url</a> = <span class="stringliteral">&quot;https://github.com/jmcnamara&quot;</span>,</div>
<div class="line">                              .tip = <span class="stringliteral">&quot;GitHub&quot;</span>};</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a0b05e75e2c2a5c3452374714cdb2b79b">worksheet_insert_image_opt</a>(worksheet, 4, 1, <span class="stringliteral">&quot;logo.png&quot;</span>, &amp;options);</div>
</div><!-- fragment --><dl class="section note"><dt>Note</dt><dd>See the notes about row scaling and BMP images in <code><a class="el" href="worksheet_8h.html#a4529d77bcefcf478b8209f46fe730f6f" title="Insert an image in a worksheet cell.">worksheet_insert_image()</a></code> above. </dd></dl>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="images_8c-example.html#a11">images.c</a>.</dd>
</dl>

</div>
</div>
<a id="aebd5cc71a42ab0e4a9ce45fe9a6f6908"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aebd5cc71a42ab0e4a9ce45fe9a6f6908">&#9670;&nbsp;</a></span>worksheet_insert_image_buffer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_insert_image_buffer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned char *&#160;</td>
          <td class="paramname"><em>image_buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>image_size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">image_buffer</td><td>Pointer to an array of bytes that holds the image data. </td></tr>
    <tr><td class="paramname">image_size</td><td>The size of the array of bytes.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>This function can be used to insert a image into a worksheet from a memory buffer:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#aebd5cc71a42ab0e4a9ce45fe9a6f6908">worksheet_insert_image_buffer</a>(worksheet, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;B3&quot;</span>), image_buffer, image_size);</div>
</div><!-- fragment --><div class="image">
<img src="image_buffer.png" alt=""/>
</div>
<p>The buffer should be a pointer to an array of unsigned char data with a specified size.</p>
<p>See <code><a class="el" href="worksheet_8h.html#a4529d77bcefcf478b8209f46fe730f6f" title="Insert an image in a worksheet cell.">worksheet_insert_image()</a></code> for details about the supported image formats, and other image features. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="image_buffer_8c-example.html#a6">image_buffer.c</a>.</dd>
</dl>

</div>
</div>
<a id="af4c868a5cf0eaab8740c1f966ba5561c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4c868a5cf0eaab8740c1f966ba5561c">&#9670;&nbsp;</a></span>worksheet_insert_image_buffer_opt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_insert_image_buffer_opt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned char *&#160;</td>
          <td class="paramname"><em>image_buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>image_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__image__options.html">lxw_image_options</a> *&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">image_buffer</td><td>Pointer to an array of bytes that holds the image data. </td></tr>
    <tr><td class="paramname">image_size</td><td>The size of the array of bytes. </td></tr>
    <tr><td class="paramname">options</td><td>Optional image parameters.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_insert_image_buffer_opt()</code> function is like <code><a class="el" href="worksheet_8h.html#aebd5cc71a42ab0e4a9ce45fe9a6f6908" title="Insert an image in a worksheet cell, from a memory buffer.">worksheet_insert_image_buffer()</a></code> function except that it takes an optional <a class="el" href="structlxw__image__options.html" title="Options for inserted images.">lxw_image_options</a> struct to scale and position the image:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__image__options.html">lxw_image_options</a> options = {.<a class="code" href="structlxw__image__options.html#a7ef9c6980b8e66bcdfff18627250001c">x_offset</a> = 32, .y_offset = 4,</div>
<div class="line">                             .x_scale  = 2,  .y_scale  = 1};</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#af4c868a5cf0eaab8740c1f966ba5561c">worksheet_insert_image_buffer_opt</a>(worksheet, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;B3&quot;</span>), image_buffer, image_size, &amp;options);</div>
</div><!-- fragment --><div class="image">
<img src="image_buffer_opt.png" alt=""/>
</div>
<p>The buffer should be a pointer to an array of unsigned char data with a specified size.</p>
<p>See <code><a class="el" href="worksheet_8h.html#af4c868a5cf0eaab8740c1f966ba5561c" title="Insert an image in a worksheet cell, from a memory buffer.">worksheet_insert_image_buffer_opt()</a></code> for details about the supported image formats, and other image options. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="image_buffer_8c-example.html#a8">image_buffer.c</a>.</dd>
</dl>

</div>
</div>
<a id="ac2067faaacb8bfa6550b019e915900a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac2067faaacb8bfa6550b019e915900a2">&#9670;&nbsp;</a></span>worksheet_insert_chart()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_insert_chart </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__chart.html">lxw_chart</a> *&#160;</td>
          <td class="paramname"><em>chart</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">chart</td><td>A <a class="el" href="structlxw__chart.html" title="Struct to represent an Excel chart.">lxw_chart</a> object created via <a class="el" href="workbook_8h.html#a63b001ecefdbc4417986a3e344657726" title="Create a new chart to be added to a worksheet:">workbook_add_chart()</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_insert_chart()</code> function can be used to insert a chart into a worksheet. The chart object must be created first using the <code><a class="el" href="workbook_8h.html#a63b001ecefdbc4417986a3e344657726" title="Create a new chart to be added to a worksheet:">workbook_add_chart()</a></code> function and configured using the <a class="el" href="chart_8h.html">chart.h</a> functions.</p>
<div class="fragment"><div class="line"><span class="comment">// Create a chart object.</span></div>
<div class="line"><a class="code" href="structlxw__chart.html">lxw_chart</a> *chart = <a class="code" href="workbook_8h.html#a63b001ecefdbc4417986a3e344657726">workbook_add_chart</a>(workbook, <a class="code" href="chart_8h.html#a9f577b0fcabe6cac9118a26a483fe85caf309b18af571c90d3ae052e769d30e6c">LXW_CHART_LINE</a>);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Add a data series to the chart.</span></div>
<div class="line"><a class="code" href="chart_8h.html#ad60de0eb056e93435407e91482115f55">chart_add_series</a>(chart, NULL, <span class="stringliteral">&quot;=Sheet1!$A$1:$A$6&quot;</span>);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Insert the chart into the worksheet.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#ac2067faaacb8bfa6550b019e915900a2">worksheet_insert_chart</a>(worksheet, 0, 2, chart);</div>
</div><!-- fragment --><div class="image">
<img src="chart_working.png" alt=""/>
</div>
<p><b>Note:</b></p>
<p>A chart may only be inserted into a worksheet once. If several similar charts are required then each one must be created separately with <code>worksheet_insert_chart()</code>. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="chart_8c-example.html#a9">chart.c</a>, <a class="el" href="chart_area_8c-example.html#a24">chart_area.c</a>, <a class="el" href="chart_bar_8c-example.html#a24">chart_bar.c</a>, <a class="el" href="chart_clustered_8c-example.html#a16">chart_clustered.c</a>, <a class="el" href="chart_column_8c-example.html#a24">chart_column.c</a>, <a class="el" href="chart_data_table_8c-example.html#a24">chart_data_table.c</a>, <a class="el" href="chart_data_tools_8c-example.html#a17">chart_data_tools.c</a>, <a class="el" href="chart_doughnut_8c-example.html#a18">chart_doughnut.c</a>, <a class="el" href="chart_fonts_8c-example.html#a26">chart_fonts.c</a>, <a class="el" href="chart_line_8c-example.html#a24">chart_line.c</a>, <a class="el" href="chart_pattern_8c-example.html#a28">chart_pattern.c</a>, <a class="el" href="chart_pie_8c-example.html#a18">chart_pie.c</a>, <a class="el" href="chart_radar_8c-example.html#a24">chart_radar.c</a>, <a class="el" href="chart_scatter_8c-example.html#a24">chart_scatter.c</a>, and <a class="el" href="chart_styles_8c-example.html#a14">chart_styles.c</a>.</dd>
</dl>

</div>
</div>
<a id="a4e8ea2614bc214fa0cc8992733c51f5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e8ea2614bc214fa0cc8992733c51f5f">&#9670;&nbsp;</a></span>worksheet_insert_chart_opt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_insert_chart_opt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__chart.html">lxw_chart</a> *&#160;</td>
          <td class="paramname"><em>chart</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__chart__options.html">lxw_chart_options</a> *&#160;</td>
          <td class="paramname"><em>user_options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">chart</td><td>A <a class="el" href="structlxw__chart.html" title="Struct to represent an Excel chart.">lxw_chart</a> object created via <a class="el" href="workbook_8h.html#a63b001ecefdbc4417986a3e344657726" title="Create a new chart to be added to a worksheet:">workbook_add_chart()</a>. </td></tr>
    <tr><td class="paramname">user_options</td><td>Optional chart parameters.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_insert_chart_opt()</code> function is like <code><a class="el" href="worksheet_8h.html#ac2067faaacb8bfa6550b019e915900a2" title="Insert a chart object into a worksheet.">worksheet_insert_chart()</a></code> function except that it takes an optional <a class="el" href="structlxw__chart__options.html" title="Options for inserted charts.">lxw_chart_options</a> struct to scale and position the chart:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__chart__options.html">lxw_chart_options</a> options = {.<a class="code" href="structlxw__image__options.html#a7ef9c6980b8e66bcdfff18627250001c">x_offset</a> = 30,  .y_offset = 10,</div>
<div class="line">                             .x_scale  = 0.5, .y_scale  = 0.75};</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a4e8ea2614bc214fa0cc8992733c51f5f">worksheet_insert_chart_opt</a>(worksheet, 0, 2, chart, &amp;options);</div>
</div><!-- fragment --><div class="image">
<img src="chart_line_opt.png" alt=""/>
</div>
 <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="chart_data_labels_8c-example.html#a20">chart_data_labels.c</a>.</dd>
</dl>

</div>
</div>
<a id="ad5a2a09ec65c0f286b756235c7327225"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5a2a09ec65c0f286b756235c7327225">&#9670;&nbsp;</a></span>worksheet_merge_range()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_merge_range </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>first_row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>first_col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>last_row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>last_col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__format.html">lxw_format</a> *&#160;</td>
          <td class="paramname"><em>format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">first_row</td><td>The first row of the range. (All zero indexed.) </td></tr>
    <tr><td class="paramname">first_col</td><td>The first column of the range. </td></tr>
    <tr><td class="paramname">last_row</td><td>The last row of the range. </td></tr>
    <tr><td class="paramname">last_col</td><td>The last col of the range. </td></tr>
    <tr><td class="paramname">string</td><td>String to write to the merged range. </td></tr>
    <tr><td class="paramname">format</td><td>A pointer to a Format instance or NULL.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_merge_range()</code> function allows cells to be merged together so that they act as a single area.</p>
<p>Excel generally merges and centers cells at same time. To get similar behavior with libxlsxwriter you need to apply a <a class="el" href="format_8h.html">Format</a> object with the appropriate alignment:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__format.html">lxw_format</a> *merge_format = <a class="code" href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a>(workbook);</div>
<div class="line"><a class="code" href="format_8h.html#a189c83d1f21b01937f1f730720c33d13">format_set_align</a>(merge_format, <a class="code" href="format_8h.html#adeeb0d70c7c873422d642323e7e1ecf5a9899936ef3a43721b394b9b5d2314496">LXW_ALIGN_CENTER</a>);</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#ad5a2a09ec65c0f286b756235c7327225">worksheet_merge_range</a>(worksheet, 1, 1, 1, 3, <span class="stringliteral">&quot;Merged Range&quot;</span>, merge_format);</div>
</div><!-- fragment --><p>It is possible to apply other formatting to the merged cells as well:</p>
<div class="fragment"><div class="line"><a class="code" href="format_8h.html#a189c83d1f21b01937f1f730720c33d13">format_set_align</a>   (merge_format, <a class="code" href="format_8h.html#adeeb0d70c7c873422d642323e7e1ecf5a9899936ef3a43721b394b9b5d2314496">LXW_ALIGN_CENTER</a>);</div>
<div class="line"><a class="code" href="format_8h.html#a189c83d1f21b01937f1f730720c33d13">format_set_align</a>   (merge_format, <a class="code" href="format_8h.html#adeeb0d70c7c873422d642323e7e1ecf5ae0a52569d3110521d3e9341809336063">LXW_ALIGN_VERTICAL_CENTER</a>);</div>
<div class="line"><a class="code" href="format_8h.html#a9cf7a28a6e8014cb98dff27415e2b1ca">format_set_border</a>  (merge_format, <a class="code" href="format_8h.html#a4d5e924b1acd9571fd5e0fe2615e9f8fafee0fd8f4ad9a64420efae0004448911">LXW_BORDER_DOUBLE</a>);</div>
<div class="line"><a class="code" href="format_8h.html#a85e1b0baf44b445b65894e48722aec14">format_set_bold</a>    (merge_format);</div>
<div class="line"><a class="code" href="format_8h.html#aeef47436c335daf1801683ac7b3b587d">format_set_bg_color</a>(merge_format, 0xD7E4BC);</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#ad5a2a09ec65c0f286b756235c7327225">worksheet_merge_range</a>(worksheet, 2, 1, 3, 3, <span class="stringliteral">&quot;Merged Range&quot;</span>, merge_format);</div>
</div><!-- fragment --><div class="image">
<img src="merge.png" alt=""/>
</div>
<p>The <code>worksheet_merge_range()</code> function writes a <code>char*</code> string using <code><a class="el" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31" title="Write a string to a worksheet cell.">worksheet_write_string()</a></code>. In order to write other data types, such as a number or a formula, you can overwrite the first cell with a call to one of the other write functions. The same Format should be used as was used in the merged range.</p>
<div class="fragment"><div class="line"><span class="comment">// First write a range with a blank string.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#ad5a2a09ec65c0f286b756235c7327225">worksheet_merge_range</a> (worksheet, 1, 1, 1, 3, <span class="stringliteral">&quot;&quot;</span>, format);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Then overwrite the first cell with a number.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#ad9fc47d3beaa2ab4759414e8580c2289">worksheet_write_number</a>(worksheet, 1, 1, 123, format);</div>
</div><!-- fragment --><dl class="section note"><dt>Note</dt><dd>Merged ranges generally don't work in libxlsxwriter when the Workbook <a class="el" href="structlxw__workbook__options.html" title="Workbook options.">lxw_workbook_options</a> <code>constant_memory</code> mode is enabled. </dd></dl>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="merge_range_8c-example.html#a16">merge_range.c</a>, and <a class="el" href="merge_rich_string_8c-example.html#a16">merge_rich_string.c</a>.</dd>
</dl>

</div>
</div>
<a id="a4e2b1de34e96331000a996f512aecfcf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e2b1de34e96331000a996f512aecfcf">&#9670;&nbsp;</a></span>worksheet_autofilter()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_autofilter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>first_row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>first_col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>last_row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>last_col</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">first_row</td><td>The first row of the range. (All zero indexed.) </td></tr>
    <tr><td class="paramname">first_col</td><td>The first column of the range. </td></tr>
    <tr><td class="paramname">last_row</td><td>The last row of the range. </td></tr>
    <tr><td class="paramname">last_col</td><td>The last col of the range.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_autofilter()</code> function allows an autofilter to be added to a worksheet.</p>
<p>An autofilter is a way of adding drop down lists to the headers of a 2D range of worksheet data. This allows users to filter the data based on simple criteria so that some data is shown and some is hidden.</p>
<div class="image">
<img src="autofilter.png" alt=""/>
</div>
<p>To add an autofilter to a worksheet:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a4e2b1de34e96331000a996f512aecfcf">worksheet_autofilter</a>(worksheet, 0, 0, 50, 3);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Same as above using the RANGE() macro.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a4e2b1de34e96331000a996f512aecfcf">worksheet_autofilter</a>(worksheet, <a class="code" href="utility_8h.html#a4dbbdfc9b616195c799dee78e727cecc">RANGE</a>(<span class="stringliteral">&quot;A1:D51&quot;</span>));</div>
</div><!-- fragment --><p>Note: it isn't currently possible to apply filter conditions to the autofilter. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="autofilter_8c-example.html#a6">autofilter.c</a>.</dd>
</dl>

</div>
</div>
<a id="a70c4b9cfb27b18258117545ac6ce6da0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70c4b9cfb27b18258117545ac6ce6da0">&#9670;&nbsp;</a></span>worksheet_data_validation_cell()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_data_validation_cell </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__data__validation.html">lxw_data_validation</a> *&#160;</td>
          <td class="paramname"><em>validation</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">validation</td><td>A <a class="el" href="structlxw__data__validation.html" title="Worksheet data validation options.">lxw_data_validation</a> object to control the validation.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_data_validation_cell()</code> function is used to construct an Excel data validation or to limit the user input to a dropdown list of values:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__data__validation.html">lxw_data_validation</a> *data_validation = calloc(1, <span class="keyword">sizeof</span>(<a class="code" href="structlxw__data__validation.html">lxw_data_validation</a>));</div>
<div class="line"> </div>
<div class="line">data_validation-&gt;<a class="code" href="structlxw__data__validation.html#a4495d388fd38d3824db6d8b7af3cdecc">validate</a>       = <a class="code" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4ca0952e8f509c60eca7015ac69ed47b4e5">LXW_VALIDATION_TYPE_INTEGER</a>;</div>
<div class="line">data_validation-&gt;<a class="code" href="structlxw__data__validation.html#a7d648cb7da5e14cb1ba1c446cd91f93f">criteria</a>       = <a class="code" href="worksheet_8h.html#a88eed033ce0af97d5151528bc514fbf5a2f5a8dc34e8bd8b298372f2a09102bd9">LXW_VALIDATION_CRITERIA_BETWEEN</a>;</div>
<div class="line">data_validation-&gt;<a class="code" href="structlxw__data__validation.html#acc19c667d02e2e5e917216bc077b2ade">minimum_number</a> = 1;</div>
<div class="line">data_validation-&gt;<a class="code" href="structlxw__data__validation.html#abc1601dcfcd8e7d7172984fb34e14626">maximum_number</a> = 10;</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a70c4b9cfb27b18258117545ac6ce6da0">worksheet_data_validation_cell</a>(worksheet, 2, 1, data_validation);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Same as above with the CELL() macro.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a70c4b9cfb27b18258117545ac6ce6da0">worksheet_data_validation_cell</a>(worksheet, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;B3&quot;</span>), data_validation);</div>
</div><!-- fragment --><div class="image">
<img src="data_validate4.png" alt=""/>
</div>
<p>Data validation and the various options of <a class="el" href="structlxw__data__validation.html" title="Worksheet data validation options.">lxw_data_validation</a> are described in more detail in <a class="el" href="working_with_data_validation.html">Working with Data Validation</a>. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="data_validate_8c-example.html#a27">data_validate.c</a>.</dd>
</dl>

</div>
</div>
<a id="a14f482010dd0f817e17001d01644a57f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14f482010dd0f817e17001d01644a57f">&#9670;&nbsp;</a></span>worksheet_data_validation_range()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_data_validation_range </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>first_row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>first_col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>last_row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>last_col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__data__validation.html">lxw_data_validation</a> *&#160;</td>
          <td class="paramname"><em>validation</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">first_row</td><td>The first row of the range. (All zero indexed.) </td></tr>
    <tr><td class="paramname">first_col</td><td>The first column of the range. </td></tr>
    <tr><td class="paramname">last_row</td><td>The last row of the range. </td></tr>
    <tr><td class="paramname">last_col</td><td>The last col of the range. </td></tr>
    <tr><td class="paramname">validation</td><td>A <a class="el" href="structlxw__data__validation.html" title="Worksheet data validation options.">lxw_data_validation</a> object to control the validation.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_data_validation_range()</code> function is the same as the <code>worksheet_data_validation_cell()</code>, see above, except the data validation is applied to a range of cells:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__data__validation.html">lxw_data_validation</a> *data_validation = calloc(1, <span class="keyword">sizeof</span>(<a class="code" href="structlxw__data__validation.html">lxw_data_validation</a>));</div>
<div class="line"> </div>
<div class="line">data_validation-&gt;<a class="code" href="structlxw__data__validation.html#a4495d388fd38d3824db6d8b7af3cdecc">validate</a>       = <a class="code" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4ca0952e8f509c60eca7015ac69ed47b4e5">LXW_VALIDATION_TYPE_INTEGER</a>;</div>
<div class="line">data_validation-&gt;<a class="code" href="structlxw__data__validation.html#a7d648cb7da5e14cb1ba1c446cd91f93f">criteria</a>       = <a class="code" href="worksheet_8h.html#a88eed033ce0af97d5151528bc514fbf5a2f5a8dc34e8bd8b298372f2a09102bd9">LXW_VALIDATION_CRITERIA_BETWEEN</a>;</div>
<div class="line">data_validation-&gt;<a class="code" href="structlxw__data__validation.html#acc19c667d02e2e5e917216bc077b2ade">minimum_number</a> = 1;</div>
<div class="line">data_validation-&gt;<a class="code" href="structlxw__data__validation.html#abc1601dcfcd8e7d7172984fb34e14626">maximum_number</a> = 10;</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a14f482010dd0f817e17001d01644a57f">worksheet_data_validation_range</a>(worksheet, 2, 1, 4, 1, data_validation);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Same as above with the RANGE() macro.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a14f482010dd0f817e17001d01644a57f">worksheet_data_validation_range</a>(worksheet, <a class="code" href="utility_8h.html#a4dbbdfc9b616195c799dee78e727cecc">RANGE</a>(<span class="stringliteral">&quot;B3:B5&quot;</span>), data_validation);</div>
</div><!-- fragment --><p>Data validation and the various options of <a class="el" href="structlxw__data__validation.html" title="Worksheet data validation options.">lxw_data_validation</a> are described in more detail in <a class="el" href="working_with_data_validation.html">Working with Data Validation</a>. </p>

</div>
</div>
<a id="a171180f46f54aa816c2b3c6c8688ab17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a171180f46f54aa816c2b3c6c8688ab17">&#9670;&nbsp;</a></span>worksheet_conditional_format_cell()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_conditional_format_cell </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__conditional__format.html">lxw_conditional_format</a> *&#160;</td>
          <td class="paramname"><em>conditional_format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The zero indexed row number. </td></tr>
    <tr><td class="paramname">col</td><td>The zero indexed column number. </td></tr>
    <tr><td class="paramname">conditional_format</td><td>A <a class="el" href="structlxw__conditional__format.html" title="Worksheet conditional formatting options.">lxw_conditional_format</a> object to control the conditional format.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_conditional_format_cell()</code> function is used to set a conditional format for a cell in a worksheet:</p>
<div class="fragment"><div class="line">conditional_format-&gt;type     = <a class="code" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92dac9180feb375f5d9302d80467398a0c6e">LXW_CONDITIONAL_TYPE_CELL</a>;</div>
<div class="line">conditional_format-&gt;criteria = <a class="code" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6bad288ab1847d59fa1183555c5a82c4d11">LXW_CONDITIONAL_CRITERIA_GREATER_THAN_OR_EQUAL_TO</a>;</div>
<div class="line">conditional_format-&gt;value    = 50;</div>
<div class="line">conditional_format-&gt;format   = format1;</div>
<div class="line"><a class="code" href="worksheet_8h.html#a171180f46f54aa816c2b3c6c8688ab17">worksheet_conditional_format_cell</a>(worksheet, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;A1&quot;</span>), conditional_format);</div>
</div><!-- fragment --><p>The conditional format parameters is specified in <a class="el" href="structlxw__conditional__format.html" title="Worksheet conditional formatting options.">lxw_conditional_format</a>.</p>
<p>See <a class="el" href="working_with_conditional_formatting.html">Working with Conditional Formatting</a> for full details. </p>

</div>
</div>
<a id="aef79f21eefbda49cd04e338d958c8a95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef79f21eefbda49cd04e338d958c8a95">&#9670;&nbsp;</a></span>worksheet_conditional_format_range()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_conditional_format_range </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>first_row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>first_col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>last_row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>last_col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__conditional__format.html">lxw_conditional_format</a> *&#160;</td>
          <td class="paramname"><em>conditional_format</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">first_row</td><td>The first row of the range. (All zero indexed.) </td></tr>
    <tr><td class="paramname">first_col</td><td>The first column of the range. </td></tr>
    <tr><td class="paramname">last_row</td><td>The last row of the range. </td></tr>
    <tr><td class="paramname">last_col</td><td>The last col of the range. </td></tr>
    <tr><td class="paramname">conditional_format</td><td>A <a class="el" href="structlxw__conditional__format.html" title="Worksheet conditional formatting options.">lxw_conditional_format</a> object to control the conditional format.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_conditional_format_cell()</code> function is used to set a conditional format for a range of cells in a worksheet:</p>
<div class="fragment"><div class="line">conditional_format-&gt;type     = <a class="code" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92dac9180feb375f5d9302d80467398a0c6e">LXW_CONDITIONAL_TYPE_CELL</a>;</div>
<div class="line">conditional_format-&gt;criteria = <a class="code" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6bad288ab1847d59fa1183555c5a82c4d11">LXW_CONDITIONAL_CRITERIA_GREATER_THAN_OR_EQUAL_TO</a>;</div>
<div class="line">conditional_format-&gt;value    = 50;</div>
<div class="line">conditional_format-&gt;format   = format1;</div>
<div class="line"><a class="code" href="worksheet_8h.html#aef79f21eefbda49cd04e338d958c8a95">worksheet_conditional_format_range</a>(worksheet1, <a class="code" href="utility_8h.html#a4dbbdfc9b616195c799dee78e727cecc">RANGE</a>(<span class="stringliteral">&quot;B3:K12&quot;</span>), conditional_format);</div>
<div class="line"> </div>
<div class="line">conditional_format-&gt;type     = <a class="code" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92dac9180feb375f5d9302d80467398a0c6e">LXW_CONDITIONAL_TYPE_CELL</a>;</div>
<div class="line">conditional_format-&gt;criteria = <a class="code" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6bae8a15acdb209feb53b8948c0e50cc9c3">LXW_CONDITIONAL_CRITERIA_LESS_THAN</a>;</div>
<div class="line">conditional_format-&gt;value    = 50;</div>
<div class="line">conditional_format-&gt;format   = format2;</div>
<div class="line"><a class="code" href="worksheet_8h.html#aef79f21eefbda49cd04e338d958c8a95">worksheet_conditional_format_range</a>(worksheet1, <a class="code" href="utility_8h.html#a4dbbdfc9b616195c799dee78e727cecc">RANGE</a>(<span class="stringliteral">&quot;B3:K12&quot;</span>), conditional_format);</div>
</div><!-- fragment --><p>Output:</p>
<div class="image">
<img src="conditional_format1.png" alt=""/>
</div>
<p>The conditional format parameters is specified in <a class="el" href="structlxw__conditional__format.html" title="Worksheet conditional formatting options.">lxw_conditional_format</a>.</p>
<p>See <a class="el" href="working_with_conditional_formatting.html">Working with Conditional Formatting</a> for full details. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="conditional_format1_8c-example.html#a17">conditional_format1.c</a>, and <a class="el" href="conditional_format2_8c-example.html#a18">conditional_format2.c</a>.</dd>
</dl>

</div>
</div>
<a id="a76ec76f91328c512d3d86a35642f0a08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76ec76f91328c512d3d86a35642f0a08">&#9670;&nbsp;</a></span>worksheet_activate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_activate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_activate()</code> function is used to specify which worksheet is initially visible in a multi-sheet workbook:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet1 = <a class="code" href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a>(workbook, NULL);</div>
<div class="line"><a class="code" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet2 = <a class="code" href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a>(workbook, NULL);</div>
<div class="line"><a class="code" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet3 = <a class="code" href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a>(workbook, NULL);</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a76ec76f91328c512d3d86a35642f0a08">worksheet_activate</a>(worksheet3);</div>
</div><!-- fragment --><div class="image">
<img src="worksheet_activate.png" alt=""/>
</div>
<p>More than one worksheet can be selected via the <code><a class="el" href="worksheet_8h.html#a78bfe3a786149deca69248db57da182f" title="Set a worksheet tab as selected.">worksheet_select()</a></code> function, see below, however only one worksheet can be active.</p>
<p>The default active worksheet is the first worksheet. </p>

</div>
</div>
<a id="a78bfe3a786149deca69248db57da182f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78bfe3a786149deca69248db57da182f">&#9670;&nbsp;</a></span>worksheet_select()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_select </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_select()</code> function is used to indicate that a worksheet is selected in a multi-sheet workbook:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a76ec76f91328c512d3d86a35642f0a08">worksheet_activate</a>(worksheet1);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a78bfe3a786149deca69248db57da182f">worksheet_select</a>(worksheet2);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a78bfe3a786149deca69248db57da182f">worksheet_select</a>(worksheet3);</div>
</div><!-- fragment --><p>A selected worksheet has its tab highlighted. Selecting worksheets is a way of grouping them together so that, for example, several worksheets could be printed in one go. A worksheet that has been activated via the <code><a class="el" href="worksheet_8h.html#a76ec76f91328c512d3d86a35642f0a08" title="Make a worksheet the active, i.e., visible worksheet.">worksheet_activate()</a></code> function will also appear as selected. </p>

</div>
</div>
<a id="a180fcbcf012b5c165a01490d1128dc11"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a180fcbcf012b5c165a01490d1128dc11">&#9670;&nbsp;</a></span>worksheet_hide()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_hide </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_hide()</code> function is used to hide a worksheet:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a180fcbcf012b5c165a01490d1128dc11">worksheet_hide</a>(worksheet2);</div>
</div><!-- fragment --><p>You may wish to hide a worksheet in order to avoid confusing a user with intermediate data or calculations.</p>
<div class="image">
<img src="hide_sheet.png" alt=""/>
</div>
<p>A hidden worksheet can not be activated or selected so this function is mutually exclusive with the <code><a class="el" href="worksheet_8h.html#a76ec76f91328c512d3d86a35642f0a08" title="Make a worksheet the active, i.e., visible worksheet.">worksheet_activate()</a></code> and <code><a class="el" href="worksheet_8h.html#a78bfe3a786149deca69248db57da182f" title="Set a worksheet tab as selected.">worksheet_select()</a></code> functions. In addition, since the first worksheet will default to being the active worksheet, you cannot hide the first worksheet without activating another sheet:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a76ec76f91328c512d3d86a35642f0a08">worksheet_activate</a>(worksheet2);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a180fcbcf012b5c165a01490d1128dc11">worksheet_hide</a>(worksheet1);</div>
</div><!-- fragment --> <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="hide_sheet_8c-example.html#a4">hide_sheet.c</a>.</dd>
</dl>

</div>
</div>
<a id="a463c8d3247f56e0ec191b148355f42f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a463c8d3247f56e0ec191b148355f42f0">&#9670;&nbsp;</a></span>worksheet_set_first_sheet()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_set_first_sheet </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code><a class="el" href="worksheet_8h.html#a76ec76f91328c512d3d86a35642f0a08" title="Make a worksheet the active, i.e., visible worksheet.">worksheet_activate()</a></code> function determines which worksheet is initially selected. However, if there are a large number of worksheets the selected worksheet may not appear on the screen. To avoid this you can select the leftmost visible worksheet tab using <code>worksheet_set_first_sheet()</code>:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a463c8d3247f56e0ec191b148355f42f0">worksheet_set_first_sheet</a>(worksheet19); <span class="comment">// First visible worksheet tab.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a76ec76f91328c512d3d86a35642f0a08">worksheet_activate</a>(worksheet20);        <span class="comment">// First visible worksheet.</span></div>
</div><!-- fragment --><p>This function is not required very often. The default value is the first worksheet. </p>

</div>
</div>
<a id="a7e52f1eecb20fe4f9e6223bcf195103b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e52f1eecb20fe4f9e6223bcf195103b">&#9670;&nbsp;</a></span>worksheet_freeze_panes()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_freeze_panes </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>col</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">row</td><td>The cell row (zero indexed). </td></tr>
    <tr><td class="paramname">col</td><td>The cell column (zero indexed).</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_freeze_panes()</code> function can be used to divide a worksheet into horizontal or vertical regions known as panes and to "freeze" these panes so that the splitter bars are not visible.</p>
<p>The parameters <code>row</code> and <code>col</code> are used to specify the location of the split. It should be noted that the split is specified at the top or left of a cell and that the function uses zero based indexing. Therefore to freeze the first row of a worksheet it is necessary to specify the split at row 2 (which is 1 as the zero-based index).</p>
<p>You can set one of the <code>row</code> and <code>col</code> parameters as zero if you do not want either a vertical or horizontal split.</p>
<p>Examples:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a7e52f1eecb20fe4f9e6223bcf195103b">worksheet_freeze_panes</a>(worksheet1, 1, 0); <span class="comment">// Freeze the first row.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a7e52f1eecb20fe4f9e6223bcf195103b">worksheet_freeze_panes</a>(worksheet2, 0, 1); <span class="comment">// Freeze the first column.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a7e52f1eecb20fe4f9e6223bcf195103b">worksheet_freeze_panes</a>(worksheet3, 1, 1); <span class="comment">// Freeze first row/column.</span></div>
</div><!-- fragment --> <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="panes_8c-example.html#a13">panes.c</a>.</dd>
</dl>

</div>
</div>
<a id="a9f4a3845529bcc2922b89bdb450ded32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f4a3845529bcc2922b89bdb450ded32">&#9670;&nbsp;</a></span>worksheet_split_panes()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_split_panes </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>vertical</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>horizontal</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">vertical</td><td>The position for the vertical split. </td></tr>
    <tr><td class="paramname">horizontal</td><td>The position for the horizontal split.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_split_panes()</code> function can be used to divide a worksheet into horizontal or vertical regions known as panes. This function is different from the <code><a class="el" href="worksheet_8h.html#a7e52f1eecb20fe4f9e6223bcf195103b" title="Split and freeze a worksheet into panes.">worksheet_freeze_panes()</a></code> function in that the splits between the panes will be visible to the user and each pane will have its own scroll bars.</p>
<p>The parameters <code>vertical</code> and <code>horizontal</code> are used to specify the vertical and horizontal position of the split. The units for <code>vertical</code> and <code>horizontal</code> are the same as those used by Excel to specify row height and column width. However, the vertical and horizontal units are different from each other. Therefore you must specify the <code>vertical</code> and <code>horizontal</code> parameters in terms of the row heights and column widths that you have set or the default values which are 15 for a row and 8.43 for a column.</p>
<p>Examples:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a9f4a3845529bcc2922b89bdb450ded32">worksheet_split_panes</a>(worksheet1, 15, 0);    <span class="comment">// First row.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a9f4a3845529bcc2922b89bdb450ded32">worksheet_split_panes</a>(worksheet2, 0,  8.43); <span class="comment">// First column.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a9f4a3845529bcc2922b89bdb450ded32">worksheet_split_panes</a>(worksheet3, 15, 8.43); <span class="comment">// First row and column.</span></div>
</div><!-- fragment --> <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="panes_8c-example.html#a19">panes.c</a>.</dd>
</dl>

</div>
</div>
<a id="a62368aa313184d72a9ca2b1cf5de9a8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62368aa313184d72a9ca2b1cf5de9a8a">&#9670;&nbsp;</a></span>worksheet_set_selection()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_set_selection </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>first_row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>first_col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>last_row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>last_col</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>A pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">first_row</td><td>The first row of the range. (All zero indexed.) </td></tr>
    <tr><td class="paramname">first_col</td><td>The first column of the range. </td></tr>
    <tr><td class="paramname">last_row</td><td>The last row of the range. </td></tr>
    <tr><td class="paramname">last_col</td><td>The last col of the range.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_set_selection()</code> function can be used to specify which cell or range of cells is selected in a worksheet: The most common requirement is to select a single cell, in which case the <code>first_</code> and <code>last_</code> parameters should be the same.</p>
<p>The active cell within a selected range is determined by the order in which <code>first_</code> and <code>last_</code> are specified.</p>
<p>Examples:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a62368aa313184d72a9ca2b1cf5de9a8a">worksheet_set_selection</a>(worksheet1, 3, 3, 3, 3);     <span class="comment">// Cell D4.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a62368aa313184d72a9ca2b1cf5de9a8a">worksheet_set_selection</a>(worksheet2, 3, 3, 6, 6);     <span class="comment">// Cells D4 to G7.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a62368aa313184d72a9ca2b1cf5de9a8a">worksheet_set_selection</a>(worksheet3, 6, 6, 3, 3);     <span class="comment">// Cells G7 to D4.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a62368aa313184d72a9ca2b1cf5de9a8a">worksheet_set_selection</a>(worksheet5, <a class="code" href="utility_8h.html#a4dbbdfc9b616195c799dee78e727cecc">RANGE</a>(<span class="stringliteral">&quot;D4:G7&quot;</span>)); <span class="comment">// Using the RANGE macro.</span></div>
</div><!-- fragment --> <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="panes_8c-example.html#a16">panes.c</a>.</dd>
</dl>

</div>
</div>
<a id="ad24e2a01fccb881e4cc478a92aa095e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad24e2a01fccb881e4cc478a92aa095e6">&#9670;&nbsp;</a></span>worksheet_set_landscape()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_set_landscape </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated.</td></tr>
  </table>
  </dd>
</dl>
<p>This function is used to set the orientation of a worksheet's printed page to landscape:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#ad24e2a01fccb881e4cc478a92aa095e6">worksheet_set_landscape</a>(worksheet);</div>
</div><!-- fragment --> 
</div>
</div>
<a id="af498d1caa032633240af6d26ef80515a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af498d1caa032633240af6d26ef80515a">&#9670;&nbsp;</a></span>worksheet_set_portrait()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_set_portrait </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated.</td></tr>
  </table>
  </dd>
</dl>
<p>This function is used to set the orientation of a worksheet's printed page to portrait. The default worksheet orientation is portrait, so this function isn't generally required:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#af498d1caa032633240af6d26ef80515a">worksheet_set_portrait</a>(worksheet);</div>
</div><!-- fragment --> 
</div>
</div>
<a id="a5d442a52a3549d5d2324f13787b66f47"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d442a52a3549d5d2324f13787b66f47">&#9670;&nbsp;</a></span>worksheet_set_page_view()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_set_page_view </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated.</td></tr>
  </table>
  </dd>
</dl>
<p>This function is used to display the worksheet in "Page View/Layout" mode:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a5d442a52a3549d5d2324f13787b66f47">worksheet_set_page_view</a>(worksheet);</div>
</div><!-- fragment --> 
</div>
</div>
<a id="a9f8af12017797b10c5ee68e04149032f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f8af12017797b10c5ee68e04149032f">&#9670;&nbsp;</a></span>worksheet_set_paper()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_set_paper </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>paper_type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">paper_type</td><td>The Excel paper format type.</td></tr>
  </table>
  </dd>
</dl>
<p>This function is used to set the paper format for the printed output of a worksheet. The following paper styles are available:</p>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadLeft">Index  </th><th class="markdownTableHeadLeft">Paper format  </th><th class="markdownTableHeadLeft">Paper size   </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">0  </td><td class="markdownTableBodyLeft">Printer default  </td><td class="markdownTableBodyLeft">Printer default   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">1  </td><td class="markdownTableBodyLeft">Letter  </td><td class="markdownTableBodyLeft">8 1/2 x 11 in   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">2  </td><td class="markdownTableBodyLeft">Letter Small  </td><td class="markdownTableBodyLeft">8 1/2 x 11 in   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">3  </td><td class="markdownTableBodyLeft">Tabloid  </td><td class="markdownTableBodyLeft">11 x 17 in   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">4  </td><td class="markdownTableBodyLeft">Ledger  </td><td class="markdownTableBodyLeft">17 x 11 in   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">5  </td><td class="markdownTableBodyLeft">Legal  </td><td class="markdownTableBodyLeft">8 1/2 x 14 in   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">6  </td><td class="markdownTableBodyLeft">Statement  </td><td class="markdownTableBodyLeft">5 1/2 x 8 1/2 in   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">7  </td><td class="markdownTableBodyLeft">Executive  </td><td class="markdownTableBodyLeft">7 1/4 x 10 1/2 in   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">8  </td><td class="markdownTableBodyLeft">A3  </td><td class="markdownTableBodyLeft">297 x 420 mm   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">9  </td><td class="markdownTableBodyLeft">A4  </td><td class="markdownTableBodyLeft">210 x 297 mm   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">10  </td><td class="markdownTableBodyLeft">A4 Small  </td><td class="markdownTableBodyLeft">210 x 297 mm   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">11  </td><td class="markdownTableBodyLeft">A5  </td><td class="markdownTableBodyLeft">148 x 210 mm   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">12  </td><td class="markdownTableBodyLeft">B4  </td><td class="markdownTableBodyLeft">250 x 354 mm   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">13  </td><td class="markdownTableBodyLeft">B5  </td><td class="markdownTableBodyLeft">182 x 257 mm   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">14  </td><td class="markdownTableBodyLeft">Folio  </td><td class="markdownTableBodyLeft">8 1/2 x 13 in   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">15  </td><td class="markdownTableBodyLeft">Quarto  </td><td class="markdownTableBodyLeft">215 x 275 mm   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">16  </td><td class="markdownTableBodyLeft">&mdash;  </td><td class="markdownTableBodyLeft">10x14 in   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">17  </td><td class="markdownTableBodyLeft">&mdash;  </td><td class="markdownTableBodyLeft">11x17 in   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">18  </td><td class="markdownTableBodyLeft">Note  </td><td class="markdownTableBodyLeft">8 1/2 x 11 in   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">19  </td><td class="markdownTableBodyLeft">Envelope 9  </td><td class="markdownTableBodyLeft">3 7/8 x 8 7/8   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">20  </td><td class="markdownTableBodyLeft">Envelope 10  </td><td class="markdownTableBodyLeft">4 1/8 x 9 1/2   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">21  </td><td class="markdownTableBodyLeft">Envelope 11  </td><td class="markdownTableBodyLeft">4 1/2 x 10 3/8   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">22  </td><td class="markdownTableBodyLeft">Envelope 12  </td><td class="markdownTableBodyLeft">4 3/4 x 11   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">23  </td><td class="markdownTableBodyLeft">Envelope 14  </td><td class="markdownTableBodyLeft">5 x 11 1/2   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">24  </td><td class="markdownTableBodyLeft">C size sheet  </td><td class="markdownTableBodyLeft">&mdash;   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">25  </td><td class="markdownTableBodyLeft">D size sheet  </td><td class="markdownTableBodyLeft">&mdash;   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">26  </td><td class="markdownTableBodyLeft">E size sheet  </td><td class="markdownTableBodyLeft">&mdash;   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">27  </td><td class="markdownTableBodyLeft">Envelope DL  </td><td class="markdownTableBodyLeft">110 x 220 mm   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">28  </td><td class="markdownTableBodyLeft">Envelope C3  </td><td class="markdownTableBodyLeft">324 x 458 mm   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">29  </td><td class="markdownTableBodyLeft">Envelope C4  </td><td class="markdownTableBodyLeft">229 x 324 mm   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">30  </td><td class="markdownTableBodyLeft">Envelope C5  </td><td class="markdownTableBodyLeft">162 x 229 mm   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">31  </td><td class="markdownTableBodyLeft">Envelope C6  </td><td class="markdownTableBodyLeft">114 x 162 mm   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">32  </td><td class="markdownTableBodyLeft">Envelope C65  </td><td class="markdownTableBodyLeft">114 x 229 mm   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">33  </td><td class="markdownTableBodyLeft">Envelope B4  </td><td class="markdownTableBodyLeft">250 x 353 mm   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">34  </td><td class="markdownTableBodyLeft">Envelope B5  </td><td class="markdownTableBodyLeft">176 x 250 mm   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">35  </td><td class="markdownTableBodyLeft">Envelope B6  </td><td class="markdownTableBodyLeft">176 x 125 mm   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">36  </td><td class="markdownTableBodyLeft">Envelope  </td><td class="markdownTableBodyLeft">110 x 230 mm   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">37  </td><td class="markdownTableBodyLeft">Monarch  </td><td class="markdownTableBodyLeft">3.875 x 7.5 in   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">38  </td><td class="markdownTableBodyLeft">Envelope  </td><td class="markdownTableBodyLeft">3 5/8 x 6 1/2 in   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">39  </td><td class="markdownTableBodyLeft">Fanfold  </td><td class="markdownTableBodyLeft">14 7/8 x 11 in   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">40  </td><td class="markdownTableBodyLeft">German Std Fanfold  </td><td class="markdownTableBodyLeft">8 1/2 x 12 in   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">41  </td><td class="markdownTableBodyLeft">German Legal Fanfold  </td><td class="markdownTableBodyLeft">8 1/2 x 13 in   </td></tr>
</table>
<p>Note, it is likely that not all of these paper types will be available to the end user since it will depend on the paper formats that the user's printer supports. Therefore, it is best to stick to standard paper types:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a9f8af12017797b10c5ee68e04149032f">worksheet_set_paper</a>(worksheet1, 1);  <span class="comment">// US Letter</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a9f8af12017797b10c5ee68e04149032f">worksheet_set_paper</a>(worksheet2, 9);  <span class="comment">// A4</span></div>
</div><!-- fragment --><p>If you do not specify a paper type the worksheet will print using the printer's default paper style. </p>

</div>
</div>
<a id="ab942bbc0493eaa5cf5696da30b6f872d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab942bbc0493eaa5cf5696da30b6f872d">&#9670;&nbsp;</a></span>worksheet_set_margins()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_set_margins </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>right</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>top</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>bottom</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">left</td><td>Left margin in inches. Excel default is 0.7. </td></tr>
    <tr><td class="paramname">right</td><td>Right margin in inches. Excel default is 0.7. </td></tr>
    <tr><td class="paramname">top</td><td>Top margin in inches. Excel default is 0.75. </td></tr>
    <tr><td class="paramname">bottom</td><td>Bottom margin in inches. Excel default is 0.75.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_set_margins()</code> function is used to set the margins of the worksheet when it is printed. The units are in inches. Specifying <code>-1</code> for any parameter will give the default Excel value as shown above.</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#ab942bbc0493eaa5cf5696da30b6f872d">worksheet_set_margins</a>(worksheet, 1.3, 1.2, -1, -1);</div>
</div><!-- fragment --> <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="headers_footers_8c-example.html#a11">headers_footers.c</a>.</dd>
</dl>

</div>
</div>
<a id="a4070c24ed5107f33e94f30a1bf865ba9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4070c24ed5107f33e94f30a1bf865ba9">&#9670;&nbsp;</a></span>worksheet_set_header()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_set_header </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>string</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">string</td><td>The header string.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>Headers and footers are generated using a string which is a combination of plain text and control characters.</p>
<p>The available control character are:</p>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadNone">Control  </th><th class="markdownTableHeadNone">Category  </th><th class="markdownTableHeadNone">Description   </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyNone"><code>&amp;L</code>  </td><td class="markdownTableBodyNone">Justification  </td><td class="markdownTableBodyNone">Left   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyNone"><code>&amp;C</code>  </td><td class="markdownTableBodyNone"></td><td class="markdownTableBodyNone">Center   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyNone"><code>&amp;R</code>  </td><td class="markdownTableBodyNone"></td><td class="markdownTableBodyNone">Right   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyNone"><code>&amp;P</code>  </td><td class="markdownTableBodyNone">Information  </td><td class="markdownTableBodyNone">Page number   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyNone"><code>&amp;N</code>  </td><td class="markdownTableBodyNone"></td><td class="markdownTableBodyNone">Total number of pages   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyNone"><code>&amp;D</code>  </td><td class="markdownTableBodyNone"></td><td class="markdownTableBodyNone">Date   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyNone"><code>&amp;T</code>  </td><td class="markdownTableBodyNone"></td><td class="markdownTableBodyNone">Time   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyNone"><code>&amp;F</code>  </td><td class="markdownTableBodyNone"></td><td class="markdownTableBodyNone">File name   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyNone"><code>&amp;A</code>  </td><td class="markdownTableBodyNone"></td><td class="markdownTableBodyNone">Worksheet name   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyNone"><code>&amp;Z</code>  </td><td class="markdownTableBodyNone"></td><td class="markdownTableBodyNone">Workbook path   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyNone"><code>&amp;fontsize</code>  </td><td class="markdownTableBodyNone">Font  </td><td class="markdownTableBodyNone">Font size   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyNone"><code>&amp;"font,style"</code>  </td><td class="markdownTableBodyNone"></td><td class="markdownTableBodyNone">Font name and style   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyNone"><code>&amp;U</code>  </td><td class="markdownTableBodyNone"></td><td class="markdownTableBodyNone">Single underline   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyNone"><code>&amp;E</code>  </td><td class="markdownTableBodyNone"></td><td class="markdownTableBodyNone">Double underline   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyNone"><code>&amp;S</code>  </td><td class="markdownTableBodyNone"></td><td class="markdownTableBodyNone">Strikethrough   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyNone"><code>&amp;X</code>  </td><td class="markdownTableBodyNone"></td><td class="markdownTableBodyNone">Superscript   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyNone"><code>&amp;Y</code>  </td><td class="markdownTableBodyNone"></td><td class="markdownTableBodyNone">Subscript   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyNone"><code>&amp;[Picture]</code>  </td><td class="markdownTableBodyNone">Images  </td><td class="markdownTableBodyNone">Image placeholder   </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyNone"><code>&amp;G</code>  </td><td class="markdownTableBodyNone"></td><td class="markdownTableBodyNone">Same as <code>&amp;[Picture]</code>   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyNone"><code>&amp;&amp;</code>  </td><td class="markdownTableBodyNone">Miscellaneous  </td><td class="markdownTableBodyNone">Literal ampersand &amp;   </td></tr>
</table>
<p>Note: inserting images requires the <code><a class="el" href="worksheet_8h.html#ab913a06656ecf28292d6b21d3c3eaaac" title="Set the printed page header caption with additional options.">worksheet_set_header_opt()</a></code> function.</p>
<p>Text in headers and footers can be justified (aligned) to the left, center and right by prefixing the text with the control characters <code>&amp;L</code>, <code>&amp;C</code> and <code>&amp;R</code>.</p>
<p>For example (with ASCII art representation of the results):</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9">worksheet_set_header</a>(worksheet, <span class="stringliteral">&quot;&amp;LHello&quot;</span>);</div>
<div class="line"> </div>
<div class="line"><span class="comment">//     ---------------------------------------------------------------</span></div>
<div class="line"><span class="comment">//    |                                                               |</span></div>
<div class="line"><span class="comment">//    | Hello                                                         |</span></div>
<div class="line"><span class="comment">//    |                                                               |</span></div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9">worksheet_set_header</a>(worksheet, <span class="stringliteral">&quot;&amp;CHello&quot;</span>);</div>
<div class="line"> </div>
<div class="line"><span class="comment">//     ---------------------------------------------------------------</span></div>
<div class="line"><span class="comment">//    |                                                               |</span></div>
<div class="line"><span class="comment">//    |                          Hello                                |</span></div>
<div class="line"><span class="comment">//    |                                                               |</span></div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9">worksheet_set_header</a>(worksheet, <span class="stringliteral">&quot;&amp;RHello&quot;</span>);</div>
<div class="line"> </div>
<div class="line"><span class="comment">//     ---------------------------------------------------------------</span></div>
<div class="line"><span class="comment">//    |                                                               |</span></div>
<div class="line"><span class="comment">//    |                                                         Hello |</span></div>
<div class="line"><span class="comment">//    |                                                               |</span></div>
</div><!-- fragment --><p>For simple text, if you do not specify any justification the text will be centered. However, you must prefix the text with <code>&amp;C</code> if you specify a font name or any other formatting:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9">worksheet_set_header</a>(worksheet, <span class="stringliteral">&quot;Hello&quot;</span>);</div>
<div class="line"> </div>
<div class="line"><span class="comment">//     ---------------------------------------------------------------</span></div>
<div class="line"><span class="comment">//    |                                                               |</span></div>
<div class="line"><span class="comment">//    |                          Hello                                |</span></div>
<div class="line"><span class="comment">//    |                                                               |</span></div>
</div><!-- fragment --><p>You can have text in each of the justification regions:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9">worksheet_set_header</a>(worksheet, <span class="stringliteral">&quot;&amp;LCiao&amp;CBello&amp;RCielo&quot;</span>);</div>
<div class="line"> </div>
<div class="line"><span class="comment">//     ---------------------------------------------------------------</span></div>
<div class="line"><span class="comment">//    |                                                               |</span></div>
<div class="line"><span class="comment">//    | Ciao                     Bello                          Cielo |</span></div>
<div class="line"><span class="comment">//    |                                                               |</span></div>
</div><!-- fragment --><p>The information control characters act as variables that Excel will update as the workbook or worksheet changes. Times and dates are in the users default format:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9">worksheet_set_header</a>(worksheet, <span class="stringliteral">&quot;&amp;CPage &amp;P of &amp;N&quot;</span>);</div>
<div class="line"> </div>
<div class="line"><span class="comment">//     ---------------------------------------------------------------</span></div>
<div class="line"><span class="comment">//    |                                                               |</span></div>
<div class="line"><span class="comment">//    |                        Page 1 of 6                            |</span></div>
<div class="line"><span class="comment">//    |                                                               |</span></div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9">worksheet_set_header</a>(worksheet, <span class="stringliteral">&quot;&amp;CUpdated at &amp;T&quot;</span>);</div>
<div class="line"> </div>
<div class="line"><span class="comment">//     ---------------------------------------------------------------</span></div>
<div class="line"><span class="comment">//    |                                                               |</span></div>
<div class="line"><span class="comment">//    |                    Updated at 12:30 PM                        |</span></div>
<div class="line"><span class="comment">//    |                                                               |</span></div>
</div><!-- fragment --><p>You can specify the font size of a section of the text by prefixing it with the control character <code>&amp;n</code> where <code>n</code> is the font size:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9">worksheet_set_header</a>(worksheet1, <span class="stringliteral">&quot;&amp;C&amp;30Hello Big&quot;</span>);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9">worksheet_set_header</a>(worksheet2, <span class="stringliteral">&quot;&amp;C&amp;10Hello Small&quot;</span>);</div>
</div><!-- fragment --><p>You can specify the font of a section of the text by prefixing it with the control sequence <code>&amp;"font,style"</code> where <code>fontname</code> is a font name such as Windows font descriptions: "Regular", "Italic", "Bold" or "Bold Italic": "Courier New" or "Times New Roman" and <code>style</code> is one of the standard</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9">worksheet_set_header</a>(worksheet1, <span class="stringliteral">&quot;&amp;C&amp;\&quot;Courier New,Italic\&quot;Hello&quot;</span>);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9">worksheet_set_header</a>(worksheet2, <span class="stringliteral">&quot;&amp;C&amp;\&quot;Courier New,Bold Italic\&quot;Hello&quot;</span>);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9">worksheet_set_header</a>(worksheet3, <span class="stringliteral">&quot;&amp;C&amp;\&quot;Times New Roman,Regular\&quot;Hello&quot;</span>);</div>
</div><!-- fragment --><p>It is possible to combine all of these features together to create sophisticated headers and footers. As an aid to setting up complicated headers and footers you can record a page set-up as a macro in Excel and look at the format strings that VBA produces. Remember however that VBA uses two double quotes <code>""</code> to indicate a single double quote. For the last example above the equivalent VBA code looks like this:</p>
<div class="fragment"><div class="line">.LeftHeader = <span class="stringliteral">&quot;&quot;</span></div>
<div class="line">.CenterHeader = <span class="stringliteral">&quot;&amp;&quot;</span><span class="stringliteral">&quot;Times New Roman,Regular&quot;</span><span class="stringliteral">&quot;Hello&quot;</span></div>
<div class="line">.RightHeader = <span class="stringliteral">&quot;&quot;</span></div>
</div><!-- fragment --><p>Alternatively you can inspect the header and footer strings in an Excel file by unzipping it and grepping the XML sub-files. The following shows how to do that using libxml's xmllint to format the XML for clarity:</p>
<div class="fragment"><div class="line">$ unzip myfile.xlsm -d myfile</div>
<div class="line">$ xmllint --format `find myfile -name <span class="stringliteral">&quot;*.xml&quot;</span> | xargs` | egrep <span class="stringliteral">&quot;Header|Footer&quot;</span> | sed <span class="stringliteral">&#39;s/&amp;amp;/\&amp;/g&#39;</span></div>
<div class="line"> </div>
<div class="line">  &lt;headerFooter scaleWithDoc=<span class="stringliteral">&quot;0&quot;</span>&gt;</div>
<div class="line">    &lt;oddHeader&gt;&amp;L&amp;P&lt;/oddHeader&gt;</div>
<div class="line">  &lt;/headerFooter&gt;</div>
</div><!-- fragment --><p>To include a single literal ampersand <code>&amp;</code> in a header or footer you should use a double ampersand <code>&amp;&amp;</code>:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9">worksheet_set_header</a>(worksheet, <span class="stringliteral">&quot;&amp;CCuriouser &amp;&amp; Curiouser - Attorneys at Law&quot;</span>);</div>
</div><!-- fragment --><dl class="section note"><dt>Note</dt><dd>Excel requires that the header or footer string cannot be longer than 255 characters, including the control characters. Strings longer than this will not be written. </dd></dl>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="headers_footers_8c-example.html#a4">headers_footers.c</a>.</dd>
</dl>

</div>
</div>
<a id="a57eb561cf3ab5e408a6612f0e379903a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57eb561cf3ab5e408a6612f0e379903a">&#9670;&nbsp;</a></span>worksheet_set_footer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_set_footer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>string</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">string</td><td>The footer string.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The syntax of this function is the same as <a class="el" href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9" title="Set the printed page header caption.">worksheet_set_header()</a>. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="headers_footers_8c-example.html#a5">headers_footers.c</a>.</dd>
</dl>

</div>
</div>
<a id="ab913a06656ecf28292d6b21d3c3eaaac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab913a06656ecf28292d6b21d3c3eaaac">&#9670;&nbsp;</a></span>worksheet_set_header_opt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_set_header_opt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__header__footer__options.html">lxw_header_footer_options</a> *&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">string</td><td>The header string. </td></tr>
    <tr><td class="paramname">options</td><td>Header options.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The syntax of this function is the same as <code><a class="el" href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9" title="Set the printed page header caption.">worksheet_set_header()</a></code> with an additional parameter to specify options for the header.</p>
<p>The <a class="el" href="structlxw__header__footer__options.html" title="Header and footer options.">lxw_header_footer_options</a> options are:</p>
<ul>
<li><code>margin</code>: Header or footer margin in inches. The value must by larger than 0.0. The Excel default is 0.3.</li>
<li><code>image_left</code>: The left header image filename, with path if required. This should have a corresponding <code>&amp;G/&amp;[Picture]</code> placeholder in the <code>&amp;L</code> section of the header/footer string.</li>
<li><code>image_center</code>: The center header image filename, with path if required. This should have a corresponding <code>&amp;G/&amp;[Picture]</code> placeholder in the <code>&amp;C</code> section of the header/footer string.</li>
<li><code>image_right</code>: The right header image filename, with path if required. This should have a corresponding <code>&amp;G/&amp;[Picture]</code> placeholder in the <code>&amp;R</code> section of the header/footer string.</li>
</ul>
<div class="fragment"><div class="line"><a class="code" href="structlxw__header__footer__options.html">lxw_header_footer_options</a> header_options = { .<a class="code" href="structlxw__header__footer__options.html#a0cd0badf4c6c3dde9aa46e924276a9aa">margin</a> = 0.2 };</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#ab913a06656ecf28292d6b21d3c3eaaac">worksheet_set_header_opt</a>(worksheet, <span class="stringliteral">&quot;Some text&quot;</span>, &amp;header_options);</div>
</div><!-- fragment --><p>Images can be inserted in the header by specifying the <code>&amp;[Picture]</code> placeholder and a filename/path to the image:</p>
<div class="fragment"><div class="line"> <a class="code" href="structlxw__header__footer__options.html">lxw_header_footer_options</a> header_options = {.<a class="code" href="structlxw__header__footer__options.html#a3a1bc57f98a514918ea3a38671a4ac2d">image_left</a> = <span class="stringliteral">&quot;logo.png&quot;</span>};</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#ab913a06656ecf28292d6b21d3c3eaaac">worksheet_set_header_opt</a>(worksheet, <span class="stringliteral">&quot;&amp;L&amp;[Picture]&quot;</span>, &amp;header_options);</div>
</div><!-- fragment --><div class="image">
<img src="headers_footers.png" alt=""/>
</div>
 <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="headers_footers_8c-example.html#a10">headers_footers.c</a>.</dd>
</dl>

</div>
</div>
<a id="aed383b6dd3319d58a113226e5e73331f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed383b6dd3319d58a113226e5e73331f">&#9670;&nbsp;</a></span>worksheet_set_footer_opt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_set_footer_opt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__header__footer__options.html">lxw_header_footer_options</a> *&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">string</td><td>The footer string. </td></tr>
    <tr><td class="paramname">options</td><td>Footer options.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The syntax of this function is the same as <code><a class="el" href="worksheet_8h.html#ab913a06656ecf28292d6b21d3c3eaaac" title="Set the printed page header caption with additional options.">worksheet_set_header_opt()</a></code>. </p>

</div>
</div>
<a id="a9601745a2e9e7b1e194b7f5283f197f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9601745a2e9e7b1e194b7f5283f197f0">&#9670;&nbsp;</a></span>worksheet_set_h_pagebreaks()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_set_h_pagebreaks </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>breaks</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">breaks</td><td>Array of page breaks.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_set_h_pagebreaks()</code> function adds horizontal page breaks to a worksheet. A page break causes all the data that follows it to be printed on the next page. Horizontal page breaks act between rows.</p>
<p>The function takes an array of one or more page breaks. The type of the array data is <a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> and the last element of the array must be 0:</p>
<div class="fragment"><div class="line"><a class="code" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> breaks1[] = {20, 0}; <span class="comment">// 1 page break. Zero indicates the end.</span></div>
<div class="line"><a class="code" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> breaks2[] = {20, 40, 60, 80, 0};</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a9601745a2e9e7b1e194b7f5283f197f0">worksheet_set_h_pagebreaks</a>(worksheet1, breaks1);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a9601745a2e9e7b1e194b7f5283f197f0">worksheet_set_h_pagebreaks</a>(worksheet2, breaks2);</div>
</div><!-- fragment --><p>To create a page break between rows 20 and 21 you must specify the break at row 21. However in zero index notation this is actually row 20:</p>
<div class="fragment"><div class="line"><span class="comment">// Break between row 20 and 21.</span></div>
<div class="line"><a class="code" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a> breaks[] = {20, 0};</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a9601745a2e9e7b1e194b7f5283f197f0">worksheet_set_h_pagebreaks</a>(worksheet, breaks);</div>
</div><!-- fragment --><p>There is an Excel limitation of 1023 horizontal page breaks per worksheet.</p>
<p>Note: If you specify the "fit to page" option via the <code><a class="el" href="worksheet_8h.html#a9ed8b0603df10ce2439b54f7980efb6d" title="Fit the printed area to a specific number of pages both vertically and horizontally.">worksheet_fit_to_pages()</a></code> function it will override all manual page breaks. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="headers_footers_8c-example.html#a12">headers_footers.c</a>.</dd>
</dl>

</div>
</div>
<a id="a00621cf25b5a449a92bb9b3fc83327e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00621cf25b5a449a92bb9b3fc83327e6">&#9670;&nbsp;</a></span>worksheet_set_v_pagebreaks()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_set_v_pagebreaks </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>breaks</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">breaks</td><td>Array of page breaks.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>The <code>worksheet_set_v_pagebreaks()</code> function adds vertical page breaks to a worksheet. A page break causes all the data that follows it to be printed on the next page. Vertical page breaks act between columns.</p>
<p>The function takes an array of one or more page breaks. The type of the array data is <a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> and the last element of the array must be 0:</p>
<div class="fragment"><div class="line"><a class="code" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> breaks1[] = {20, 0}; <span class="comment">// 1 page break. Zero indicates the end.</span></div>
<div class="line"><a class="code" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> breaks2[] = {20, 40, 60, 80, 0};</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a00621cf25b5a449a92bb9b3fc83327e6">worksheet_set_v_pagebreaks</a>(worksheet1, breaks1);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a00621cf25b5a449a92bb9b3fc83327e6">worksheet_set_v_pagebreaks</a>(worksheet2, breaks2);</div>
</div><!-- fragment --><p>To create a page break between columns 20 and 21 you must specify the break at column 21. However in zero index notation this is actually column 20:</p>
<div class="fragment"><div class="line"><span class="comment">// Break between column 20 and 21.</span></div>
<div class="line"><a class="code" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a> breaks[] = {20, 0};</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a00621cf25b5a449a92bb9b3fc83327e6">worksheet_set_v_pagebreaks</a>(worksheet, breaks);</div>
</div><!-- fragment --><p>There is an Excel limitation of 1023 vertical page breaks per worksheet.</p>
<p>Note: If you specify the "fit to page" option via the <code><a class="el" href="worksheet_8h.html#a9ed8b0603df10ce2439b54f7980efb6d" title="Fit the printed area to a specific number of pages both vertically and horizontally.">worksheet_fit_to_pages()</a></code> function it will override all manual page breaks. </p>

</div>
</div>
<a id="a40d32d247593e01c00b5c5c606fb4bb3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40d32d247593e01c00b5c5c606fb4bb3">&#9670;&nbsp;</a></span>worksheet_print_across()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_print_across </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_print_across()</code> function is used to change the default print direction. This is referred to by Excel as the sheet "page order":</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a40d32d247593e01c00b5c5c606fb4bb3">worksheet_print_across</a>(worksheet);</div>
</div><!-- fragment --><p>The default page order is shown below for a worksheet that extends over 4 pages. The order is called "down then across": </p><pre class="fragment">[1] [3]
[2] [4]
</pre><p>However, by using the <code>print_across</code> function the print order will be changed to "across then down": </p><pre class="fragment">[1] [2]
[3] [4]
</pre> 
</div>
</div>
<a id="a38e16dc0a2e75d7ec99dca21fbeec89b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38e16dc0a2e75d7ec99dca21fbeec89b">&#9670;&nbsp;</a></span>worksheet_set_zoom()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_set_zoom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>scale</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">scale</td><td>Worksheet zoom factor.</td></tr>
  </table>
  </dd>
</dl>
<p>Set the worksheet zoom factor in the range <code>10 &lt;= zoom &lt;= 400</code>:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a38e16dc0a2e75d7ec99dca21fbeec89b">worksheet_set_zoom</a>(worksheet1, 50);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a38e16dc0a2e75d7ec99dca21fbeec89b">worksheet_set_zoom</a>(worksheet2, 75);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a38e16dc0a2e75d7ec99dca21fbeec89b">worksheet_set_zoom</a>(worksheet3, 300);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a38e16dc0a2e75d7ec99dca21fbeec89b">worksheet_set_zoom</a>(worksheet4, 400);</div>
</div><!-- fragment --><p>The default zoom factor is 100. It isn't possible to set the zoom to "Selection" because it is calculated by Excel at run-time.</p>
<p>Note, <code>worksheet_zoom()</code> does not affect the scale of the printed page. For that you should use <code><a class="el" href="worksheet_8h.html#a26130cfccecf80a9833d65a84039374d" title="Set the scale factor for the printed page.">worksheet_set_print_scale()</a></code>. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="chart_styles_8c-example.html#a9">chart_styles.c</a>.</dd>
</dl>

</div>
</div>
<a id="abd9af70f706b738690ebb9103940b0e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd9af70f706b738690ebb9103940b0e1">&#9670;&nbsp;</a></span>worksheet_gridlines()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_gridlines </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>option</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">option</td><td>Gridline option.</td></tr>
  </table>
  </dd>
</dl>
<p>Display or hide screen and print gridlines using one of the values of <a class="el" href="worksheet_8h.html#a487e0bffad0a348421b825d715621c20">lxw_gridlines</a>.</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#abd9af70f706b738690ebb9103940b0e1">worksheet_gridlines</a>(worksheet1, <a class="code" href="worksheet_8h.html#a487e0bffad0a348421b825d715621c20a3fa67c27394bd03fa6642a501598f70b">LXW_HIDE_ALL_GRIDLINES</a>);</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#abd9af70f706b738690ebb9103940b0e1">worksheet_gridlines</a>(worksheet2, <a class="code" href="worksheet_8h.html#a487e0bffad0a348421b825d715621c20a6ad2d5f382b103286ccdf7561a9d2328">LXW_SHOW_PRINT_GRIDLINES</a>);</div>
</div><!-- fragment --><p>The Excel default is that the screen gridlines are on and the printed worksheet is off. </p>

</div>
</div>
<a id="a931114d5266e03931f9fc1b21bd9b56c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a931114d5266e03931f9fc1b21bd9b56c">&#9670;&nbsp;</a></span>worksheet_center_horizontally()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_center_horizontally </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated.</td></tr>
  </table>
  </dd>
</dl>
<p>Center the worksheet data horizontally between the margins on the printed page:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a931114d5266e03931f9fc1b21bd9b56c">worksheet_center_horizontally</a>(worksheet);</div>
</div><!-- fragment --> 
</div>
</div>
<a id="a3a7fdfe9ef603ef75a03818e6abbfd12"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a7fdfe9ef603ef75a03818e6abbfd12">&#9670;&nbsp;</a></span>worksheet_center_vertically()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_center_vertically </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated.</td></tr>
  </table>
  </dd>
</dl>
<p>Center the worksheet data vertically between the margins on the printed page:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a3a7fdfe9ef603ef75a03818e6abbfd12">worksheet_center_vertically</a>(worksheet);</div>
</div><!-- fragment --> 
</div>
</div>
<a id="adb169a9740135f5c01eab94099d77f9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb169a9740135f5c01eab94099d77f9b">&#9670;&nbsp;</a></span>worksheet_print_row_col_headers()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_print_row_col_headers </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated.</td></tr>
  </table>
  </dd>
</dl>
<p>When printing a worksheet from Excel the row and column headers (the row numbers on the left and the column letters at the top) aren't printed by default.</p>
<p>This function sets the printer option to print these headers:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#adb169a9740135f5c01eab94099d77f9b">worksheet_print_row_col_headers</a>(worksheet);</div>
</div><!-- fragment --> 
</div>
</div>
<a id="a5022e812b6fe0414f2a8bab03fd0ec48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5022e812b6fe0414f2a8bab03fd0ec48">&#9670;&nbsp;</a></span>worksheet_repeat_rows()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_repeat_rows </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>first_row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>last_row</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">first_row</td><td>First row of repeat range. </td></tr>
    <tr><td class="paramname">last_row</td><td>Last row of repeat range.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>For large Excel documents it is often desirable to have the first row or rows of the worksheet print out at the top of each page.</p>
<p>This can be achieved by using this function. The parameters <code>first_row</code> and <code>last_row</code> are zero based:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a5022e812b6fe0414f2a8bab03fd0ec48">worksheet_repeat_rows</a>(worksheet, 0, 0); <span class="comment">// Repeat the first row.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a5022e812b6fe0414f2a8bab03fd0ec48">worksheet_repeat_rows</a>(worksheet, 0, 1); <span class="comment">// Repeat the first two rows.</span></div>
</div><!-- fragment --> 
</div>
</div>
<a id="a932dd78e18c8e82a21f87e5344aa9c65"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a932dd78e18c8e82a21f87e5344aa9c65">&#9670;&nbsp;</a></span>worksheet_repeat_columns()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_repeat_columns </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>first_col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>last_col</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">first_col</td><td>First column of repeat range. </td></tr>
    <tr><td class="paramname">last_col</td><td>Last column of repeat range.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>For large Excel documents it is often desirable to have the first column or columns of the worksheet print out at the left of each page.</p>
<p>This can be achieved by using this function. The parameters <code>first_col</code> and <code>last_col</code> are zero based:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a932dd78e18c8e82a21f87e5344aa9c65">worksheet_repeat_columns</a>(worksheet, 0, 0); <span class="comment">// Repeat the first col.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a932dd78e18c8e82a21f87e5344aa9c65">worksheet_repeat_columns</a>(worksheet, 0, 1); <span class="comment">// Repeat the first two cols.</span></div>
</div><!-- fragment --> 
</div>
</div>
<a id="ab92116759b56cd67419febf6e0aa2c9e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab92116759b56cd67419febf6e0aa2c9e">&#9670;&nbsp;</a></span>worksheet_print_area()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_print_area </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>first_row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>first_col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a>&#160;</td>
          <td class="paramname"><em>last_row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a>&#160;</td>
          <td class="paramname"><em>last_col</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">first_row</td><td>The first row of the range. (All zero indexed.) </td></tr>
    <tr><td class="paramname">first_col</td><td>The first column of the range. </td></tr>
    <tr><td class="paramname">last_row</td><td>The last row of the range. </td></tr>
    <tr><td class="paramname">last_col</td><td>The last col of the range.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a> code.</dd></dl>
<p>This function is used to specify the area of the worksheet that will be printed. The <a class="el" href="utility_8h.html#a4dbbdfc9b616195c799dee78e727cecc" title="Convert an Excel A1:B2 range into a (first_row, first_col, last_row, last_col) sequence.">RANGE()</a> macro is often convenient for this.</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#ab92116759b56cd67419febf6e0aa2c9e">worksheet_print_area</a>(worksheet, 0, 0, 41, 10); <span class="comment">// A1:K42.</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">// Same as:</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#ab92116759b56cd67419febf6e0aa2c9e">worksheet_print_area</a>(worksheet, <a class="code" href="utility_8h.html#a4dbbdfc9b616195c799dee78e727cecc">RANGE</a>(<span class="stringliteral">&quot;A1:K42&quot;</span>));</div>
</div><!-- fragment --><p>In order to set a row or column range you must specify the entire range:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#ab92116759b56cd67419febf6e0aa2c9e">worksheet_print_area</a>(worksheet, <a class="code" href="utility_8h.html#a4dbbdfc9b616195c799dee78e727cecc">RANGE</a>(<span class="stringliteral">&quot;A1:H1048576&quot;</span>)); <span class="comment">// Same as A:H.</span></div>
</div><!-- fragment --> 
</div>
</div>
<a id="a9ed8b0603df10ce2439b54f7980efb6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ed8b0603df10ce2439b54f7980efb6d">&#9670;&nbsp;</a></span>worksheet_fit_to_pages()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_fit_to_pages </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">width</td><td>Number of pages horizontally. </td></tr>
    <tr><td class="paramname">height</td><td>Number of pages vertically.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_fit_to_pages()</code> function is used to fit the printed area to a specific number of pages both vertically and horizontally. If the printed area exceeds the specified number of pages it will be scaled down to fit. This ensures that the printed area will always appear on the specified number of pages even if the page size or margins change:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a9ed8b0603df10ce2439b54f7980efb6d">worksheet_fit_to_pages</a>(worksheet1, 1, 1); <span class="comment">// Fit to 1x1 pages.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a9ed8b0603df10ce2439b54f7980efb6d">worksheet_fit_to_pages</a>(worksheet2, 2, 1); <span class="comment">// Fit to 2x1 pages.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a9ed8b0603df10ce2439b54f7980efb6d">worksheet_fit_to_pages</a>(worksheet3, 1, 2); <span class="comment">// Fit to 1x2 pages.</span></div>
</div><!-- fragment --><p>The print area can be defined using the <code><a class="el" href="worksheet_8h.html#ab92116759b56cd67419febf6e0aa2c9e" title="Set the print area for a worksheet.">worksheet_print_area()</a></code> function as described above.</p>
<p>A common requirement is to fit the printed output to <code>n</code> pages wide but have the height be as long as necessary. To achieve this set the <code>height</code> to zero:</p>
<div class="fragment"><div class="line"><span class="comment">// 1 page wide and as long as necessary.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a9ed8b0603df10ce2439b54f7980efb6d">worksheet_fit_to_pages</a>(worksheet, 1, 0);</div>
</div><!-- fragment --><p><b>Note</b>:</p>
<ul>
<li>Although it is valid to use both <code>worksheet_fit_to_pages()</code> and <code><a class="el" href="worksheet_8h.html#a26130cfccecf80a9833d65a84039374d" title="Set the scale factor for the printed page.">worksheet_set_print_scale()</a></code> on the same worksheet Excel only allows one of these options to be active at a time. The last function call made will set the active option.</li>
<li>The <code>worksheet_fit_to_pages()</code> function will override any manual page breaks that are defined in the worksheet.</li>
<li>When using <code>worksheet_fit_to_pages()</code> it may also be required to set the printer paper size using <code><a class="el" href="worksheet_8h.html#a9f8af12017797b10c5ee68e04149032f" title="Set the paper type for printing.">worksheet_set_paper()</a></code> or else Excel will default to "US Letter". </li>
</ul>

</div>
</div>
<a id="a817235e5ce7b1ea030bedd86ddbb9844"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a817235e5ce7b1ea030bedd86ddbb9844">&#9670;&nbsp;</a></span>worksheet_set_start_page()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_set_start_page </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>start_page</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">start_page</td><td>Starting page number.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_set_start_page()</code> function is used to set the number of the starting page when the worksheet is printed out:</p>
<div class="fragment"><div class="line"><span class="comment">// Start print from page 2.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#a817235e5ce7b1ea030bedd86ddbb9844">worksheet_set_start_page</a>(worksheet, 2);</div>
</div><!-- fragment --> 
</div>
</div>
<a id="a26130cfccecf80a9833d65a84039374d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26130cfccecf80a9833d65a84039374d">&#9670;&nbsp;</a></span>worksheet_set_print_scale()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_set_print_scale </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>scale</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">scale</td><td>Print scale of worksheet to be printed.</td></tr>
  </table>
  </dd>
</dl>
<p>This function sets the scale factor of the printed page. The Scale factor must be in the range <code>10 &lt;= scale &lt;= 400</code>:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a26130cfccecf80a9833d65a84039374d">worksheet_set_print_scale</a>(worksheet1, 75);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a26130cfccecf80a9833d65a84039374d">worksheet_set_print_scale</a>(worksheet2, 400);</div>
</div><!-- fragment --><p>The default scale factor is 100. Note, <code>worksheet_set_print_scale()</code> does not affect the scale of the visible page in Excel. For that you should use <code><a class="el" href="worksheet_8h.html#a38e16dc0a2e75d7ec99dca21fbeec89b" title="Set the worksheet zoom factor.">worksheet_set_zoom()</a></code>.</p>
<p>Note that although it is valid to use both <code><a class="el" href="worksheet_8h.html#a9ed8b0603df10ce2439b54f7980efb6d" title="Fit the printed area to a specific number of pages both vertically and horizontally.">worksheet_fit_to_pages()</a></code> and <code>worksheet_set_print_scale()</code> on the same worksheet Excel only allows one of these options to be active at a time. The last function call made will set the active option. </p>

</div>
</div>
<a id="a6e32eb8e5f17aedb048035a5df337538"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e32eb8e5f17aedb048035a5df337538">&#9670;&nbsp;</a></span>worksheet_right_to_left()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_right_to_left </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_right_to_left()</code> function is used to change the default direction of the worksheet from left-to-right, with the <code>A1</code> cell in the top left, to right-to-left, with the <code>A1</code> cell in the top right.</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a6e32eb8e5f17aedb048035a5df337538">worksheet_right_to_left</a>(worksheet1);</div>
</div><!-- fragment --><p>This is useful when creating Arabic, Hebrew or other near or far eastern worksheets that use right-to-left as the default direction. </p>

</div>
</div>
<a id="a0b02d53154397cd4024e8ec2a95e2d89"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b02d53154397cd4024e8ec2a95e2d89">&#9670;&nbsp;</a></span>worksheet_hide_zero()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_hide_zero </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_hide_zero()</code> function is used to hide any zero values that appear in cells:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a0b02d53154397cd4024e8ec2a95e2d89">worksheet_hide_zero</a>(worksheet1);</div>
</div><!-- fragment --> 
</div>
</div>
<a id="a1e84ef4dff791fc2278dfb029af94cb0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e84ef4dff791fc2278dfb029af94cb0">&#9670;&nbsp;</a></span>worksheet_set_tab_color()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_set_tab_color </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="format_8h.html#a34a05058edd856109e5bcf1cc6739fc9">lxw_color_t</a>&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">color</td><td>The tab color.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_set_tab_color()</code> function is used to change the color of the worksheet tab:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a1e84ef4dff791fc2278dfb029af94cb0">worksheet_set_tab_color</a>(worksheet1, <a class="code" href="format_8h.html#abeafc6e8222ba9fcfd4f2c2f4e9ea38baedd7412491d9f34fc5f947ada9d196ec">LXW_COLOR_RED</a>);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a1e84ef4dff791fc2278dfb029af94cb0">worksheet_set_tab_color</a>(worksheet2, <a class="code" href="format_8h.html#abeafc6e8222ba9fcfd4f2c2f4e9ea38bae0b5c39ced3b8c871974f0e4917e4871">LXW_COLOR_GREEN</a>);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a1e84ef4dff791fc2278dfb029af94cb0">worksheet_set_tab_color</a>(worksheet3, 0xFF9900); <span class="comment">// Orange.</span></div>
</div><!-- fragment --><p>The color should be an RGB integer value, see <a class="el" href="working_with_colors.html">Working with Colors</a>. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="tab_colors_8c-example.html#a4">tab_colors.c</a>.</dd>
</dl>

</div>
</div>
<a id="a1b49e135d4debcdb25941f2f40f04cb0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b49e135d4debcdb25941f2f40f04cb0">&#9670;&nbsp;</a></span>worksheet_protect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_protect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>password</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structlxw__protection.html">lxw_protection</a> *&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">password</td><td>A worksheet password. </td></tr>
    <tr><td class="paramname">options</td><td>Worksheet elements to protect.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_protect()</code> function protects worksheet elements from modification:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a1b49e135d4debcdb25941f2f40f04cb0">worksheet_protect</a>(worksheet, <span class="stringliteral">&quot;Some Password&quot;</span>, options);</div>
</div><!-- fragment --><p>The <code>password</code> and <a class="el" href="structlxw__protection.html" title="Worksheet protection options.">lxw_protection</a> pointer are both optional:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a1b49e135d4debcdb25941f2f40f04cb0">worksheet_protect</a>(worksheet1, NULL,       NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a1b49e135d4debcdb25941f2f40f04cb0">worksheet_protect</a>(worksheet2, NULL,       my_options);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a1b49e135d4debcdb25941f2f40f04cb0">worksheet_protect</a>(worksheet3, <span class="stringliteral">&quot;password&quot;</span>, NULL);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a1b49e135d4debcdb25941f2f40f04cb0">worksheet_protect</a>(worksheet4, <span class="stringliteral">&quot;password&quot;</span>, my_options);</div>
</div><!-- fragment --><p>Passing a <code>NULL</code> password is the same as turning on protection without a password. Passing a <code>NULL</code> password and <code>NULL</code> options, or any other combination has the effect of enabling a cell's <code>locked</code> and <code>hidden</code> properties if they have been set.</p>
<p>A <em>locked</em> cell cannot be edited and this property is on by default for all cells. A <em>hidden</em> cell will display the results of a formula but not the formula itself. These properties can be set using the <a class="el" href="format_8h.html#a1dfd61b72aab2c28c3d51e53e08df587" title="Set the cell unlocked state.">format_set_unlocked()</a> and <a class="el" href="format_8h.html#a135d94ec48564c997c5a78ca8b8861e2" title="Hide formulas in a cell.">format_set_hidden()</a> format functions.</p>
<p>You can specify which worksheet elements you wish to protect by passing a <a class="el" href="structlxw__protection.html" title="Worksheet protection options.">lxw_protection</a> pointer in the <code>options</code> argument with any or all of the following members set: </p><pre class="fragment">no_select_locked_cells
no_select_unlocked_cells
format_cells
format_columns
format_rows
insert_columns
insert_rows
insert_hyperlinks
delete_columns
delete_rows
sort
autofilter
pivot_tables
scenarios
objects
</pre><p>All parameters are off by default. Individual elements can be protected as follows:</p>
<div class="fragment"><div class="line"><a class="code" href="structlxw__protection.html">lxw_protection</a> options = {</div>
<div class="line">    .format_cells             = 1,</div>
<div class="line">    .insert_hyperlinks        = 1,</div>
<div class="line">    .insert_rows              = 1,</div>
<div class="line">    .delete_rows              = 1,</div>
<div class="line">    .insert_columns           = 1,</div>
<div class="line">    .delete_columns           = 1,</div>
<div class="line">};</div>
<div class="line"> </div>
<div class="line"><a class="code" href="worksheet_8h.html#a1b49e135d4debcdb25941f2f40f04cb0">worksheet_protect</a>(worksheet, NULL, &amp;options);</div>
</div><!-- fragment --><p>See also the <a class="el" href="format_8h.html#a1dfd61b72aab2c28c3d51e53e08df587" title="Set the cell unlocked state.">format_set_unlocked()</a> and <a class="el" href="format_8h.html#a135d94ec48564c997c5a78ca8b8861e2" title="Hide formulas in a cell.">format_set_hidden()</a> format functions.</p>
<p><b>Note:</b> Sheet level passwords in Excel offer <b>very</b> weak protection. They don't encrypt your data and are very easy to deactivate. Full workbook encryption is not supported by <code>libxlsxwriter</code> since it requires a completely different file format. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="worksheet_protection_8c-example.html#a9">worksheet_protection.c</a>.</dd>
</dl>

</div>
</div>
<a id="a9efae5027e762c9a29f6afa547e4b2db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9efae5027e762c9a29f6afa547e4b2db">&#9670;&nbsp;</a></span>worksheet_outline_settings()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_outline_settings </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>visible</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>symbols_below</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>symbols_right</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>auto_style</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">visible</td><td>Outlines are visible. Optional, defaults to True. </td></tr>
    <tr><td class="paramname">symbols_below</td><td>Show row outline symbols below the outline bar. </td></tr>
    <tr><td class="paramname">symbols_right</td><td>Show column outline symbols to the right of outline. </td></tr>
    <tr><td class="paramname">auto_style</td><td>Use Automatic outline style.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_outline_settings()</code> method is used to control the appearance of outlines in Excel. Outlines are described the section on <a class="el" href="working_with_outlines.html">Working with Outlines and Grouping</a>.</p>
<p>The <code>visible</code> parameter is used to control whether or not outlines are visible. Setting this parameter to False will cause all outlines on the worksheet to be hidden. They can be un-hidden in Excel by means of the "Show Outline Symbols" command button. The default Excel setting is True for visible outlines.</p>
<p>The <code>symbols_below</code> parameter is used to control whether the row outline symbol will appear above or below the outline level bar. The default Excel setting is True for symbols to appear below the outline level bar.</p>
<p>The <code>symbols_right</code> parameter is used to control whether the column outline symbol will appear to the left or the right of the outline level bar. The default Excel setting is True for symbols to appear to the right of the outline level bar.</p>
<p>The <code>auto_style</code> parameter is used to control whether the automatic outline generator in Excel uses automatic styles when creating an outline. This has no effect on a file generated by XlsxWriter but it does have an effect on how the worksheet behaves after it is created. The default Excel setting is False for "Automatic Styles" to be turned off.</p>
<p>The default settings for all of these parameters in libxlsxwriter correspond to Excel's default parameters and are shown below:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a9efae5027e762c9a29f6afa547e4b2db">worksheet_outline_settings</a>(worksheet1, <a class="code" href="common_8h.html#a57bffaf0ff3cb4e9f4f7f2b0b6dad349a7850bcc34c18efe2e45372f4069be0bf">LXW_TRUE</a>, <a class="code" href="common_8h.html#a57bffaf0ff3cb4e9f4f7f2b0b6dad349a7850bcc34c18efe2e45372f4069be0bf">LXW_TRUE</a>, <a class="code" href="common_8h.html#a57bffaf0ff3cb4e9f4f7f2b0b6dad349a7850bcc34c18efe2e45372f4069be0bf">LXW_TRUE</a>, <a class="code" href="common_8h.html#a57bffaf0ff3cb4e9f4f7f2b0b6dad349a847f574cc183a1d8a4e3800fe28091f4">LXW_FALSE</a>);</div>
</div><!-- fragment --><p>The worksheet parameters controlled by <code><a class="el" href="worksheet_8h.html#a9efae5027e762c9a29f6afa547e4b2db" title="Set the Outline and Grouping display properties.">worksheet_outline_settings()</a></code> are rarely used. </p>

</div>
</div>
<a id="a74121de7c4f67639b30f302d4af48eb4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74121de7c4f67639b30f302d4af48eb4">&#9670;&nbsp;</a></span>worksheet_set_default_row()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_set_default_row </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>hide_unused_rows</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance to be updated. </td></tr>
    <tr><td class="paramname">height</td><td>Default row height. </td></tr>
    <tr><td class="paramname">hide_unused_rows</td><td>Hide unused cells.</td></tr>
  </table>
  </dd>
</dl>
<p>The <code>worksheet_set_default_row()</code> function is used to set Excel default row properties such as the default height and the option to hide unused rows. These parameters are an optimization used by Excel to set row properties without generating a very large file with an entry for each row.</p>
<p>To set the default row height:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a74121de7c4f67639b30f302d4af48eb4">worksheet_set_default_row</a>(worksheet, 24, <a class="code" href="common_8h.html#a57bffaf0ff3cb4e9f4f7f2b0b6dad349a847f574cc183a1d8a4e3800fe28091f4">LXW_FALSE</a>);</div>
</div><!-- fragment --><p>To hide unused rows:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#a74121de7c4f67639b30f302d4af48eb4">worksheet_set_default_row</a>(worksheet, 15, <a class="code" href="common_8h.html#a57bffaf0ff3cb4e9f4f7f2b0b6dad349a7850bcc34c18efe2e45372f4069be0bf">LXW_TRUE</a>);</div>
</div><!-- fragment --><p>Note, in the previous case we use the default height <a class="el" href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a> = 15 so the the height remains unchanged. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="hide_row_col_8c-example.html#a5">hide_row_col.c</a>.</dd>
</dl>

</div>
</div>
<a id="a8df6c0ce82172dafdd3e81923978bd4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8df6c0ce82172dafdd3e81923978bd4b">&#9670;&nbsp;</a></span>worksheet_set_vba_name()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_set_vba_name </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance. </td></tr>
    <tr><td class="paramname">name</td><td>Name of the worksheet used by VBA.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a>.</dd></dl>
<p>The <code><a class="el" href="worksheet_8h.html#a8df6c0ce82172dafdd3e81923978bd4b" title="Set the VBA name for the worksheet.">worksheet_set_vba_name()</a></code> function can be used to set the VBA name for the worksheet. This is sometimes required when a vbaProject macro included via <code><a class="el" href="workbook_8h.html#a8de478eed94be65de0622c64a0179ff9" title="Add a vbaProject binary to the Excel workbook.">workbook_add_vba_project()</a></code> refers to the worksheet by a name other than the worksheet name:</p>
<div class="fragment"><div class="line"><a class="code" href="workbook_8h.html#a24dd6624ffdc3e17aa5bcfb4608755b8">workbook_set_vba_name</a> (workbook,  <span class="stringliteral">&quot;MyWorkbook&quot;</span>);</div>
<div class="line"><a class="code" href="worksheet_8h.html#a8df6c0ce82172dafdd3e81923978bd4b">worksheet_set_vba_name</a>(worksheet, <span class="stringliteral">&quot;MySheet1&quot;</span>);</div>
</div><!-- fragment --><p>In general Excel uses the worksheet name such as "Sheet1" as the VBA name. However, this can be changed in the VBA environment or if the the macro was extracted from a foreign language version of Excel.</p>
<p>See also <a class="el" href="working_with_macros.html">Working with VBA Macros</a> </p>

</div>
</div>
<a id="aafb945c6f7f462e7c6eb24032ea4e61a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafb945c6f7f462e7c6eb24032ea4e61a">&#9670;&nbsp;</a></span>worksheet_show_comments()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_show_comments </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<p>This <code>worksheet_show_comments()</code> function is used to make all cell comments visible when a worksheet is opened:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#aafb945c6f7f462e7c6eb24032ea4e61a">worksheet_show_comments</a>(worksheet);</div>
</div><!-- fragment --><p>Individual comments can be made visible or hidden using the <code>visible</code> option of the <a class="el" href="structlxw__comment__options.html" title="Options for inserted comments.">lxw_comment_options</a> struct and the <code><a class="el" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7" title="Write a comment to a worksheet cell with options.">worksheet_write_comment_opt()</a></code> function (see above and <a class="el" href="working_with_comments.html#ww_comments_visible">Cell comments: visible</a>). </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="comments2_8c-example.html#a18">comments2.c</a>.</dd>
</dl>

</div>
</div>
<a id="af196b0cb611f3abc800f3439f3bb8942"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af196b0cb611f3abc800f3439f3bb8942">&#9670;&nbsp;</a></span>worksheet_set_comments_author()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void worksheet_set_comments_author </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>author</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance. </td></tr>
    <tr><td class="paramname">author</td><td>The name of the comment author.</td></tr>
  </table>
  </dd>
</dl>
<p>This <code>worksheet_set_comments_author()</code> function is used to set the default author of all cell comments:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#af196b0cb611f3abc800f3439f3bb8942">worksheet_set_comments_author</a>(worksheet, <span class="stringliteral">&quot;Jane Gloriana Villanueva&quot;</span>)</div>
</div><!-- fragment --><p>Individual authors can be set using the <code>author</code> option of the <a class="el" href="structlxw__comment__options.html" title="Options for inserted comments.">lxw_comment_options</a> struct and the <code><a class="el" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7" title="Write a comment to a worksheet cell with options.">worksheet_write_comment_opt()</a></code> function (see above and <a class="el" href="working_with_comments.html#ww_comments_author">Cell comments: author</a>). </p>

</div>
</div>
<a id="af052fbb1e438c622b873ca3ebd6ef0f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af052fbb1e438c622b873ca3ebd6ef0f4">&#9670;&nbsp;</a></span>worksheet_ignore_errors()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="common_8h.html#a04b59aa3c578bc75f88ac16a979c5fe6">lxw_error</a> worksheet_ignore_errors </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> *&#160;</td>
          <td class="paramname"><em>worksheet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>range</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">worksheet</td><td>Pointer to a <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> instance. </td></tr>
    <tr><td class="paramname">type</td><td>The type of error/warning to ignore. See <a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22">lxw_ignore_errors</a>. </td></tr>
    <tr><td class="paramname">range</td><td>The range(s) for which the error/warning should be ignored.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="common_8h.html#a96384aee66a82d783d695374078e1ea9" title="Error codes from libxlsxwriter functions.">lxw_error</a>.</dd></dl>
<p>The <code>worksheet_ignore_errors()</code> function can be used to ignore various worksheet cell errors/warnings. For example the following code writes a string that looks like a number:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;D2&quot;</span>), <span class="stringliteral">&quot;123&quot;</span>, NULL);</div>
</div><!-- fragment --><p>This causes Excel to display a small green triangle in the top left hand corner of the cell to indicate an error/warning:</p>
<div class="image">
<img src="ignore_errors1.png" alt=""/>
</div>
<p>Sometimes these warnings are useful indicators that there is an issue in the spreadsheet but sometimes it is preferable to turn them off. Warnings can be turned off at the Excel level for all workbooks and worksheets by using the using "Excel options -&gt; Formulas -&gt; Error checking
rules". Alternatively you can turn them off for individual cells in a worksheet, or ranges of cells, using the <code>worksheet_ignore_errors()</code> function with different <a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22">lxw_ignore_errors</a> options and ranges like this:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#af052fbb1e438c622b873ca3ebd6ef0f4">worksheet_ignore_errors</a>(worksheet, <a class="code" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22add1e6023e41e40f36e290f0b3514460b">LXW_IGNORE_NUMBER_STORED_AS_TEXT</a>, <span class="stringliteral">&quot;C3&quot;</span>);</div>
<div class="line"><a class="code" href="worksheet_8h.html#af052fbb1e438c622b873ca3ebd6ef0f4">worksheet_ignore_errors</a>(worksheet, <a class="code" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22ae8cd84ea345808631d6c5a33c0218d5a">LXW_IGNORE_EVAL_ERROR</a>,            <span class="stringliteral">&quot;C6&quot;</span>);</div>
</div><!-- fragment --><p>The range can be a single cell, a range of cells, or multiple cells and ranges separated by spaces:</p>
<div class="fragment"><div class="line"><span class="comment">// Single cell.</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#af052fbb1e438c622b873ca3ebd6ef0f4">worksheet_ignore_errors</a>(worksheet, <a class="code" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22add1e6023e41e40f36e290f0b3514460b">LXW_IGNORE_NUMBER_STORED_AS_TEXT</a>, <span class="stringliteral">&quot;C6&quot;</span>);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Or a single range:</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#af052fbb1e438c622b873ca3ebd6ef0f4">worksheet_ignore_errors</a>(worksheet, <a class="code" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22add1e6023e41e40f36e290f0b3514460b">LXW_IGNORE_NUMBER_STORED_AS_TEXT</a>, <span class="stringliteral">&quot;C6:G8&quot;</span>);</div>
<div class="line"> </div>
<div class="line"><span class="comment">// Or multiple cells and ranges:</span></div>
<div class="line"><a class="code" href="worksheet_8h.html#af052fbb1e438c622b873ca3ebd6ef0f4">worksheet_ignore_errors</a>(worksheet, <a class="code" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22add1e6023e41e40f36e290f0b3514460b">LXW_IGNORE_NUMBER_STORED_AS_TEXT</a>, <span class="stringliteral">&quot;C6 E6 G1:G20 J2:J6&quot;</span>);</div>
</div><!-- fragment --><dl class="section note"><dt>Note</dt><dd>Calling <code>worksheet_ignore_errors()</code> more than once for the same <a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22">lxw_ignore_errors</a> type will overwrite the previous range.</dd></dl>
<p>You can turn off warnings for an entire column by specifying the range from the first cell in the column to the last cell in the column:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#af052fbb1e438c622b873ca3ebd6ef0f4">worksheet_ignore_errors</a>(worksheet, <a class="code" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22add1e6023e41e40f36e290f0b3514460b">LXW_IGNORE_NUMBER_STORED_AS_TEXT</a>, <span class="stringliteral">&quot;A1:A1048576&quot;</span>);</div>
</div><!-- fragment --><p>Or for the entire worksheet by specifying the range from the first cell in the worksheet to the last cell in the worksheet:</p>
<div class="fragment"><div class="line"><a class="code" href="worksheet_8h.html#af052fbb1e438c622b873ca3ebd6ef0f4">worksheet_ignore_errors</a>(worksheet, <a class="code" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22add1e6023e41e40f36e290f0b3514460b">LXW_IGNORE_NUMBER_STORED_AS_TEXT</a>, <span class="stringliteral">&quot;A1:XFD1048576&quot;</span>);</div>
</div><!-- fragment --><p>The worksheet errors/warnings that can be ignored are:</p>
<ul>
<li><a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22add1e6023e41e40f36e290f0b3514460b">LXW_IGNORE_NUMBER_STORED_AS_TEXT</a>: Turn off errors/warnings for numbers stores as text.</li>
<li><a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22ae8cd84ea345808631d6c5a33c0218d5a">LXW_IGNORE_EVAL_ERROR</a>: Turn off errors/warnings for formula errors (such as divide by zero).</li>
<li><a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22a61bb58652f573e3643b911dde3d17c12">LXW_IGNORE_FORMULA_DIFFERS</a>: Turn off errors/warnings for formulas that differ from surrounding formulas.</li>
<li><a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22a476dc8ef5536270c27645ab2a88e2717">LXW_IGNORE_FORMULA_RANGE</a>: Turn off errors/warnings for formulas that omit cells in a range.</li>
<li><a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22accf664e190a32d5ea8faa08f36662d1d">LXW_IGNORE_FORMULA_UNLOCKED</a>: Turn off errors/warnings for unlocked cells that contain formulas.</li>
<li><a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22a8e96b5ae88901743ee89658ba2fc9510">LXW_IGNORE_EMPTY_CELL_REFERENCE</a>: Turn off errors/warnings for formulas that refer to empty cells.</li>
<li><a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22a8d8482fcf797787cb0aef15eda546dc1">LXW_IGNORE_LIST_DATA_VALIDATION</a>: Turn off errors/warnings for cells in a table that do not comply with applicable data validation rules.</li>
<li><a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22a39f33893037a8f1b6eac268b894cdcec">LXW_IGNORE_CALCULATED_COLUMN</a>: Turn off errors/warnings for cell formulas that differ from the column formula.</li>
<li><a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22ac41cb6a61704e4bf0b7e874febdab240">LXW_IGNORE_TWO_DIGIT_TEXT_YEAR</a>: Turn off errors/warnings for formulas that contain a two digit text representation of a year. </li>
</ul>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="ignore_errors_8c-example.html#a7">ignore_errors.c</a>.</dd>
</dl>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="add618530e9c1cc294dd630b75e03d0a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add618530e9c1cc294dd630b75e03d0a4">&#9670;&nbsp;</a></span>lxw_row_col_options</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structlxw__row__col__options.html">lxw_row_col_options</a> <a class="el" href="structlxw__row__col__options.html">lxw_row_col_options</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Options struct for the <a class="el" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f" title="Set the properties for one or more columns of cells.">worksheet_set_column()</a> and <a class="el" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173" title="Set the properties for a row of cells.">worksheet_set_row()</a> functions.</p>
<p>It has the following members:</p>
<ul>
<li><code>hidden</code></li>
<li><code>level</code></li>
<li><code>collapsed</code></li>
</ul>
<p>The members of this struct are explained in <a class="el" href="working_with_outlines.html#ww_outlines_grouping">Outlines and Grouping in libxlsxwriter</a>. </p>

</div>
</div>
<a id="a7d0423d4365c80b46ffcbaee30c969fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d0423d4365c80b46ffcbaee30c969fa">&#9670;&nbsp;</a></span>lxw_conditional_format</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structlxw__conditional__format.html">lxw_conditional_format</a> <a class="el" href="structlxw__conditional__format.html">lxw_conditional_format</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The fields/options in the the <a class="el" href="structlxw__conditional__format.html" title="Worksheet conditional formatting options.">lxw_conditional_format</a> are used to define a worksheet conditional format. It is used in conjunction with <code>worksheet_conditional_format()</code>. </p>

</div>
</div>
<a id="a140925dd5202b107d7b28d2ba5d357cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a140925dd5202b107d7b28d2ba5d357cc">&#9670;&nbsp;</a></span>lxw_image_options</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structlxw__image__options.html">lxw_image_options</a> <a class="el" href="structlxw__image__options.html">lxw_image_options</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Options for modifying images inserted via <code><a class="el" href="worksheet_8h.html#a0b05e75e2c2a5c3452374714cdb2b79b" title="Insert an image in a worksheet cell, with options.">worksheet_insert_image_opt()</a></code>. </p>

</div>
</div>
<a id="aa979b59646b1df942572e8bcad1cf211"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa979b59646b1df942572e8bcad1cf211">&#9670;&nbsp;</a></span>lxw_chart_options</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structlxw__chart__options.html">lxw_chart_options</a> <a class="el" href="structlxw__chart__options.html">lxw_chart_options</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Options for modifying charts inserted via <code><a class="el" href="worksheet_8h.html#a4e8ea2614bc214fa0cc8992733c51f5f" title="Insert a chart object into a worksheet, with options.">worksheet_insert_chart_opt()</a></code>. </p>

</div>
</div>
<a id="ac23f4cd038bb0e488239c4c09d8cca83"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac23f4cd038bb0e488239c4c09d8cca83">&#9670;&nbsp;</a></span>lxw_comment_options</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structlxw__comment__options.html">lxw_comment_options</a> <a class="el" href="structlxw__comment__options.html">lxw_comment_options</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Options for modifying comments inserted via <code><a class="el" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7" title="Write a comment to a worksheet cell with options.">worksheet_write_comment_opt()</a></code>. </p>

</div>
</div>
<a id="a03f0acb4a55150e3c41200eb8e04a780"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03f0acb4a55150e3c41200eb8e04a780">&#9670;&nbsp;</a></span>lxw_header_footer_options</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structlxw__header__footer__options.html">lxw_header_footer_options</a> <a class="el" href="structlxw__header__footer__options.html">lxw_header_footer_options</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Optional parameters used in the <code><a class="el" href="worksheet_8h.html#ab913a06656ecf28292d6b21d3c3eaaac" title="Set the printed page header caption with additional options.">worksheet_set_header_opt()</a></code> and <a class="el" href="worksheet_8h.html#aed383b6dd3319d58a113226e5e73331f" title="Set the printed page footer caption with additional options.">worksheet_set_footer_opt()</a> functions. </p>

</div>
</div>
<a id="a34d1283860bf01af1b996f80023d5123"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34d1283860bf01af1b996f80023d5123">&#9670;&nbsp;</a></span>lxw_rich_string_tuple</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a> <a class="el" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Arrays of this struct are used to define "rich" multi-format strings that are passed to <code><a class="el" href="worksheet_8h.html#a62bf44845ce9dcc505bf228999db5afa" title="Write a &quot;Rich&quot; multi-format string to a worksheet cell.">worksheet_write_rich_string()</a></code>. Each struct represents a fragment of the rich multi-format string with a <a class="el" href="structlxw__format.html" title="Struct to represent the formatting properties of an Excel format.">lxw_format</a> to define the format for the string part. If the string fragment is unformatted then <code>NULL</code> can be used for the format. </p>

</div>
</div>
<a id="a4cb3d63a2495319e1a10db5ff55dfa11"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4cb3d63a2495319e1a10db5ff55dfa11">&#9670;&nbsp;</a></span>lxw_worksheet</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structlxw__worksheet.html">lxw_worksheet</a> <a class="el" href="structlxw__worksheet.html">lxw_worksheet</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The members of the <a class="el" href="structlxw__worksheet.html" title="Struct to represent an Excel worksheet.">lxw_worksheet</a> struct aren't modified directly. Instead the worksheet properties are set by calling the functions shown in <a class="el" href="worksheet_8h.html" title="Functions related to adding data and formatting to a worksheet.">worksheet.h</a>. </p>

</div>
</div>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a3df7073ab35462516525d28975286994"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3df7073ab35462516525d28975286994">&#9670;&nbsp;</a></span>LXW_DEF_COL_WIDTH</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LXW_DEF_COL_WIDTH&#160;&#160;&#160;(double)8.43</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Default column width in Excel </p>

</div>
</div>
<a id="a8901b9706d1c48c28c97e95b452a927a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8901b9706d1c48c28c97e95b452a927a">&#9670;&nbsp;</a></span>LXW_DEF_ROW_HEIGHT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LXW_DEF_ROW_HEIGHT&#160;&#160;&#160;(double)15.0</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Default row height in Excel </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="outline_8c-example.html#a12">outline.c</a>, and <a class="el" href="outline_collapsed_8c-example.html#a16">outline_collapsed.c</a>.</dd>
</dl>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="a487e0bffad0a348421b825d715621c20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a487e0bffad0a348421b825d715621c20">&#9670;&nbsp;</a></span>lxw_gridlines</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="worksheet_8h.html#a487e0bffad0a348421b825d715621c20">lxw_gridlines</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Gridline options using in <code><a class="el" href="worksheet_8h.html#abd9af70f706b738690ebb9103940b0e1" title="Set the option to display or hide gridlines on the screen and the printed page.">worksheet_gridlines()</a></code>. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a487e0bffad0a348421b825d715621c20a3fa67c27394bd03fa6642a501598f70b"></a>LXW_HIDE_ALL_GRIDLINES&#160;</td><td class="fielddoc"><p>Hide screen and print gridlines. </p>
</td></tr>
<tr><td class="fieldname"><a id="a487e0bffad0a348421b825d715621c20af5a038f9024f0d20793a77315e9245f9"></a>LXW_SHOW_SCREEN_GRIDLINES&#160;</td><td class="fielddoc"><p>Show screen gridlines. </p>
</td></tr>
<tr><td class="fieldname"><a id="a487e0bffad0a348421b825d715621c20a6ad2d5f382b103286ccdf7561a9d2328"></a>LXW_SHOW_PRINT_GRIDLINES&#160;</td><td class="fielddoc"><p>Show print gridlines. </p>
</td></tr>
<tr><td class="fieldname"><a id="a487e0bffad0a348421b825d715621c20a1dc7944e44eb6ae060dc6ef457b62e04"></a>LXW_SHOW_ALL_GRIDLINES&#160;</td><td class="fielddoc"><p>Show screen and print gridlines. </p>
</td></tr>
</table>

</div>
</div>
<a id="a00c0cb6be9a2864d2a4cc977eadea74b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00c0cb6be9a2864d2a4cc977eadea74b">&#9670;&nbsp;</a></span>lxw_validation_boolean</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="worksheet_8h.html#a00c0cb6be9a2864d2a4cc977eadea74b">lxw_validation_boolean</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Data validation property values. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a00c0cb6be9a2864d2a4cc977eadea74ba9d4f1bdb9ed0a87ffad0153c85feb786"></a>LXW_VALIDATION_OFF&#160;</td><td class="fielddoc"><p>Turn a data validation property off. </p>
</td></tr>
<tr><td class="fieldname"><a id="a00c0cb6be9a2864d2a4cc977eadea74ba8005924508401ae160533818e7cf32bb"></a>LXW_VALIDATION_ON&#160;</td><td class="fielddoc"><p>Turn a data validation property on. Data validation properties are generally on by default. </p>
</td></tr>
</table>

</div>
</div>
<a id="a20e0dbd70400f2eb7c5d88696f812b4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20e0dbd70400f2eb7c5d88696f812b4c">&#9670;&nbsp;</a></span>lxw_validation_types</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4c">lxw_validation_types</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Data validation types. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a20e0dbd70400f2eb7c5d88696f812b4ca0952e8f509c60eca7015ac69ed47b4e5"></a>LXW_VALIDATION_TYPE_INTEGER&#160;</td><td class="fielddoc"><p>Restrict cell input to whole/integer numbers only. </p>
</td></tr>
<tr><td class="fieldname"><a id="a20e0dbd70400f2eb7c5d88696f812b4ca823e5e00d1a36b40579f998b4704ddb5"></a>LXW_VALIDATION_TYPE_INTEGER_FORMULA&#160;</td><td class="fielddoc"><p>Restrict cell input to whole/integer numbers only, using a cell reference. </p>
</td></tr>
<tr><td class="fieldname"><a id="a20e0dbd70400f2eb7c5d88696f812b4ca6f1306cd335680b95c51a4d97fcfb36c"></a>LXW_VALIDATION_TYPE_DECIMAL&#160;</td><td class="fielddoc"><p>Restrict cell input to decimal numbers only. </p>
</td></tr>
<tr><td class="fieldname"><a id="a20e0dbd70400f2eb7c5d88696f812b4caaca4ee31d7b937dc130dd9623257a44a"></a>LXW_VALIDATION_TYPE_DECIMAL_FORMULA&#160;</td><td class="fielddoc"><p>Restrict cell input to decimal numbers only, using a cell reference. </p>
</td></tr>
<tr><td class="fieldname"><a id="a20e0dbd70400f2eb7c5d88696f812b4ca7d721cc2b76618d8d2fb105ca4717de0"></a>LXW_VALIDATION_TYPE_LIST&#160;</td><td class="fielddoc"><p>Restrict cell input to a list of strings in a dropdown. </p>
</td></tr>
<tr><td class="fieldname"><a id="a20e0dbd70400f2eb7c5d88696f812b4ca4c4cbe18adcd6bef7cadf8f3b467b795"></a>LXW_VALIDATION_TYPE_LIST_FORMULA&#160;</td><td class="fielddoc"><p>Restrict cell input to a list of strings in a dropdown, using a cell range. </p>
</td></tr>
<tr><td class="fieldname"><a id="a20e0dbd70400f2eb7c5d88696f812b4ca85eedf0278f7bf4d86de1bde505afd5b"></a>LXW_VALIDATION_TYPE_DATE&#160;</td><td class="fielddoc"><p>Restrict cell input to date values only, using a <a class="el" href="structlxw__datetime.html" title="Struct to represent a date and time in Excel.">lxw_datetime</a> type. </p>
</td></tr>
<tr><td class="fieldname"><a id="a20e0dbd70400f2eb7c5d88696f812b4cacd6f3d9e53bf64c4c0988f1ead5384c2"></a>LXW_VALIDATION_TYPE_DATE_FORMULA&#160;</td><td class="fielddoc"><p>Restrict cell input to date values only, using a cell reference. </p>
</td></tr>
<tr><td class="fieldname"><a id="a20e0dbd70400f2eb7c5d88696f812b4ca5d77c63d440a5ecedc33ce41d7d60521"></a>LXW_VALIDATION_TYPE_TIME&#160;</td><td class="fielddoc"><p>Restrict cell input to time values only, using a <a class="el" href="structlxw__datetime.html" title="Struct to represent a date and time in Excel.">lxw_datetime</a> type. </p>
</td></tr>
<tr><td class="fieldname"><a id="a20e0dbd70400f2eb7c5d88696f812b4ca4a21e111494a0927a836e38037164296"></a>LXW_VALIDATION_TYPE_TIME_FORMULA&#160;</td><td class="fielddoc"><p>Restrict cell input to time values only, using a cell reference. </p>
</td></tr>
<tr><td class="fieldname"><a id="a20e0dbd70400f2eb7c5d88696f812b4ca9e8f789b6ae1df30d4a8fc08aca931bf"></a>LXW_VALIDATION_TYPE_LENGTH&#160;</td><td class="fielddoc"><p>Restrict cell input to strings of defined length, using a cell reference. </p>
</td></tr>
<tr><td class="fieldname"><a id="a20e0dbd70400f2eb7c5d88696f812b4ca84961de2afdce792c486f2171f5413eb"></a>LXW_VALIDATION_TYPE_LENGTH_FORMULA&#160;</td><td class="fielddoc"><p>Restrict cell input to strings of defined length, using a cell reference. </p>
</td></tr>
<tr><td class="fieldname"><a id="a20e0dbd70400f2eb7c5d88696f812b4cad84ccc6ea31ad28577827a432ec51c18"></a>LXW_VALIDATION_TYPE_CUSTOM_FORMULA&#160;</td><td class="fielddoc"><p>Restrict cell to input controlled by a custom formula that returns <code>TRUE/FALSE</code>. </p>
</td></tr>
<tr><td class="fieldname"><a id="a20e0dbd70400f2eb7c5d88696f812b4caa4f7be1cd3469867793125f32fc36902"></a>LXW_VALIDATION_TYPE_ANY&#160;</td><td class="fielddoc"><p>Allow any type of input. Mainly only useful for pop-up messages. </p>
</td></tr>
</table>

</div>
</div>
<a id="a88eed033ce0af97d5151528bc514fbf5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88eed033ce0af97d5151528bc514fbf5">&#9670;&nbsp;</a></span>lxw_validation_criteria</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="worksheet_8h.html#a88eed033ce0af97d5151528bc514fbf5">lxw_validation_criteria</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Data validation criteria uses to control the selection of data. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a88eed033ce0af97d5151528bc514fbf5a2f5a8dc34e8bd8b298372f2a09102bd9"></a>LXW_VALIDATION_CRITERIA_BETWEEN&#160;</td><td class="fielddoc"><p>Select data between two values. </p>
</td></tr>
<tr><td class="fieldname"><a id="a88eed033ce0af97d5151528bc514fbf5aadc0c03ed751e7be70a4adad2797dacd"></a>LXW_VALIDATION_CRITERIA_NOT_BETWEEN&#160;</td><td class="fielddoc"><p>Select data that is not between two values. </p>
</td></tr>
<tr><td class="fieldname"><a id="a88eed033ce0af97d5151528bc514fbf5a5c8d6a174e2dff4519a2991f9009c351"></a>LXW_VALIDATION_CRITERIA_EQUAL_TO&#160;</td><td class="fielddoc"><p>Select data equal to a value. </p>
</td></tr>
<tr><td class="fieldname"><a id="a88eed033ce0af97d5151528bc514fbf5af0d45b3841976d2477203a9dc7361009"></a>LXW_VALIDATION_CRITERIA_NOT_EQUAL_TO&#160;</td><td class="fielddoc"><p>Select data not equal to a value. </p>
</td></tr>
<tr><td class="fieldname"><a id="a88eed033ce0af97d5151528bc514fbf5a5d447b6753a600ad638b27cb1fd596d1"></a>LXW_VALIDATION_CRITERIA_GREATER_THAN&#160;</td><td class="fielddoc"><p>Select data greater than a value. </p>
</td></tr>
<tr><td class="fieldname"><a id="a88eed033ce0af97d5151528bc514fbf5ac6c585c5b61cf957cf1e88b8372ffc25"></a>LXW_VALIDATION_CRITERIA_LESS_THAN&#160;</td><td class="fielddoc"><p>Select data less than a value. </p>
</td></tr>
<tr><td class="fieldname"><a id="a88eed033ce0af97d5151528bc514fbf5a97cc92910532a79dbf609e93bc01c07a"></a>LXW_VALIDATION_CRITERIA_GREATER_THAN_OR_EQUAL_TO&#160;</td><td class="fielddoc"><p>Select data greater than or equal to a value. </p>
</td></tr>
<tr><td class="fieldname"><a id="a88eed033ce0af97d5151528bc514fbf5aedc85c3c49615ba6f20230db04bcfba8"></a>LXW_VALIDATION_CRITERIA_LESS_THAN_OR_EQUAL_TO&#160;</td><td class="fielddoc"><p>Select data less than or equal to a value. </p>
</td></tr>
</table>

</div>
</div>
<a id="a814e4b2e983125351c617e44b73b8998"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a814e4b2e983125351c617e44b73b8998">&#9670;&nbsp;</a></span>lxw_validation_error_types</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="worksheet_8h.html#a814e4b2e983125351c617e44b73b8998">lxw_validation_error_types</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Data validation error types for pop-up messages. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a814e4b2e983125351c617e44b73b8998af2543462835dcdb58f6ff862613bb3ea"></a>LXW_VALIDATION_ERROR_TYPE_STOP&#160;</td><td class="fielddoc"><p>Show a "Stop" data validation pop-up message. This is the default. </p>
</td></tr>
<tr><td class="fieldname"><a id="a814e4b2e983125351c617e44b73b8998a53ca53803c257552740056bf44b18b98"></a>LXW_VALIDATION_ERROR_TYPE_WARNING&#160;</td><td class="fielddoc"><p>Show an "Error" data validation pop-up message. </p>
</td></tr>
<tr><td class="fieldname"><a id="a814e4b2e983125351c617e44b73b8998a971dd668c9e360e76bde86a87fb373a7"></a>LXW_VALIDATION_ERROR_TYPE_INFORMATION&#160;</td><td class="fielddoc"><p>Show an "Information" data validation pop-up message. </p>
</td></tr>
</table>

</div>
</div>
<a id="aad352c6cf9a5359d4cda51839a91c7d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad352c6cf9a5359d4cda51839a91c7d2">&#9670;&nbsp;</a></span>lxw_comment_display_types</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="worksheet_8h.html#aad352c6cf9a5359d4cda51839a91c7d2">lxw_comment_display_types</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Set the display type for a cell comment. This is hidden by default but can be set to visible with the <code><a class="el" href="worksheet_8h.html#aafb945c6f7f462e7c6eb24032ea4e61a" title="Make all comments in the worksheet visible.">worksheet_show_comments()</a></code> function. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="aad352c6cf9a5359d4cda51839a91c7d2a14b85b7b724e3866d08026f0508528fe"></a>LXW_COMMENT_DISPLAY_DEFAULT&#160;</td><td class="fielddoc"><p>Default to the worksheet default which can be hidden or visible. </p>
</td></tr>
<tr><td class="fieldname"><a id="aad352c6cf9a5359d4cda51839a91c7d2a3d229e4bc94662b4ed744abd40182728"></a>LXW_COMMENT_DISPLAY_HIDDEN&#160;</td><td class="fielddoc"><p>Hide the cell comment. Usually the default. </p>
</td></tr>
<tr><td class="fieldname"><a id="aad352c6cf9a5359d4cda51839a91c7d2a3d78b49cb38d25b6d5473a1c0112404d"></a>LXW_COMMENT_DISPLAY_VISIBLE&#160;</td><td class="fielddoc"><p>Show the cell comment. Can also be set for the worksheet with the <code><a class="el" href="worksheet_8h.html#aafb945c6f7f462e7c6eb24032ea4e61a" title="Make all comments in the worksheet visible.">worksheet_show_comments()</a></code> function. </p>
</td></tr>
</table>

</div>
</div>
<a id="affdc3f401f3ee241fad5d651628ac92d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#affdc3f401f3ee241fad5d651628ac92d">&#9670;&nbsp;</a></span>lxw_conditional_format_types</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92d">lxw_conditional_format_types</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Values used to set the "type" field of conditional format. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92dac9180feb375f5d9302d80467398a0c6e"></a>LXW_CONDITIONAL_TYPE_CELL&#160;</td><td class="fielddoc"><p>The Cell type is the most common conditional formatting type. It is used when a format is applied to a cell based on a simple criterion. <br  />
 </p>
</td></tr>
<tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92dacd711f072b3130ccd6ef1c233eba0298"></a>LXW_CONDITIONAL_TYPE_TEXT&#160;</td><td class="fielddoc"><p>The Text type is used to specify Excel's "Specific Text" style conditional format. </p>
</td></tr>
<tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92da2101fa174d43f88be22789112afb3716"></a>LXW_CONDITIONAL_TYPE_TIME_PERIOD&#160;</td><td class="fielddoc"><p>The Time Period type is used to specify Excel's "Dates Occurring" style conditional format. </p>
</td></tr>
<tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92dabdae15fb9048bcd6823c8ff02b553548"></a>LXW_CONDITIONAL_TYPE_AVERAGE&#160;</td><td class="fielddoc"><p>The Average type is used to specify Excel's "Average" style conditional format. </p>
</td></tr>
<tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92da288a6952f520145b6c00e5ad6d273370"></a>LXW_CONDITIONAL_TYPE_DUPLICATE&#160;</td><td class="fielddoc"><p>The Duplicate type is used to highlight duplicate cells in a range. </p>
</td></tr>
<tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92da058193bb32dae5557ced4117f57a8182"></a>LXW_CONDITIONAL_TYPE_UNIQUE&#160;</td><td class="fielddoc"><p>The Unique type is used to highlight unique cells in a range. </p>
</td></tr>
<tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92da0d7cc55cbacac31182eef8bb16b69ab6"></a>LXW_CONDITIONAL_TYPE_TOP&#160;</td><td class="fielddoc"><p>The Top type is used to specify the top n values by number or percentage in a range. </p>
</td></tr>
<tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92da2da918db0a1930d2e8f818e14424d824"></a>LXW_CONDITIONAL_TYPE_BOTTOM&#160;</td><td class="fielddoc"><p>The Bottom type is used to specify the bottom n values by number or percentage in a range. </p>
</td></tr>
<tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92da0187499e69ed35a00706a2749c967534"></a>LXW_CONDITIONAL_TYPE_BLANKS&#160;</td><td class="fielddoc"><p>The Blanks type is used to highlight blank cells in a range. </p>
</td></tr>
<tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92da84fcba60bd3f6efa052ba4154a155031"></a>LXW_CONDITIONAL_TYPE_NO_BLANKS&#160;</td><td class="fielddoc"><p>The No Blanks type is used to highlight non blank cells in a range. </p>
</td></tr>
<tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92dadd06584e94945519df4fc2252882e374"></a>LXW_CONDITIONAL_TYPE_ERRORS&#160;</td><td class="fielddoc"><p>The Errors type is used to highlight error cells in a range. </p>
</td></tr>
<tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92da70562e7676d45e65a932623728250058"></a>LXW_CONDITIONAL_TYPE_NO_ERRORS&#160;</td><td class="fielddoc"><p>The No Errors type is used to highlight non error cells in a range. </p>
</td></tr>
<tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92da970b8654514d6525221bc71da66c5550"></a>LXW_CONDITIONAL_TYPE_FORMULA&#160;</td><td class="fielddoc"><p>The Formula type is used to specify a conditional format based on a user defined formula. </p>
</td></tr>
<tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92da073422bf8a6df5ddbabb3763aa7b27d8"></a>LXW_CONDITIONAL_2_COLOR_SCALE&#160;</td><td class="fielddoc"><p>The 2 Color Scale type is used to specify Excel's "2 Color Scale" style conditional format. </p>
</td></tr>
<tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92da95e1b05b230b8964f78d676d0b114ed2"></a>LXW_CONDITIONAL_3_COLOR_SCALE&#160;</td><td class="fielddoc"><p>The 3 Color Scale type is used to specify Excel's "3 Color Scale" style conditional format. </p>
</td></tr>
<tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92dae0c88a53343690c1f43385b466dfe45e"></a>LXW_CONDITIONAL_DATA_BAR&#160;</td><td class="fielddoc"><p>The Data Bar type is used to specify Excel's "Data Bar" style conditional format. </p>
</td></tr>
<tr><td class="fieldname"><a id="affdc3f401f3ee241fad5d651628ac92dad29f06d444d5d900d076551cf057eee5"></a>LXW_CONDITIONAL_TYPE_ICON_SETS&#160;</td><td class="fielddoc"><p>The Icon Set type is used to specify a conditional format with a set of icons such as traffic lights or arrows. </p>
</td></tr>
</table>

</div>
</div>
<a id="a47b554f3a8f1475b57df705fd326ae6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47b554f3a8f1475b57df705fd326ae6b">&#9670;&nbsp;</a></span>lxw_conditional_criteria</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6b">lxw_conditional_criteria</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Criteria used to define how a conditional format works. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba70fa69c881508f2643929964ba0c2816"></a>LXW_CONDITIONAL_CRITERIA_EQUAL_TO&#160;</td><td class="fielddoc"><p>Format cells equal to a value. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba84a03fcabb316bc4e0dcf7227506c1b6"></a>LXW_CONDITIONAL_CRITERIA_NOT_EQUAL_TO&#160;</td><td class="fielddoc"><p>Format cells not equal to a value. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba10ffa392949de59161307149c55a971b"></a>LXW_CONDITIONAL_CRITERIA_GREATER_THAN&#160;</td><td class="fielddoc"><p>Format cells greater than a value. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6bae8a15acdb209feb53b8948c0e50cc9c3"></a>LXW_CONDITIONAL_CRITERIA_LESS_THAN&#160;</td><td class="fielddoc"><p>Format cells less than a value. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6bad288ab1847d59fa1183555c5a82c4d11"></a>LXW_CONDITIONAL_CRITERIA_GREATER_THAN_OR_EQUAL_TO&#160;</td><td class="fielddoc"><p>Format cells greater than or equal to a value. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6bac8f3cc21e16b8c6d029a9879f5835f41"></a>LXW_CONDITIONAL_CRITERIA_LESS_THAN_OR_EQUAL_TO&#160;</td><td class="fielddoc"><p>Format cells less than or equal to a value. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba085943843b38880c58d2af4cd5e85c94"></a>LXW_CONDITIONAL_CRITERIA_BETWEEN&#160;</td><td class="fielddoc"><p>Format cells between two values. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba1bf47932d37f00e5585273f0f6759075"></a>LXW_CONDITIONAL_CRITERIA_NOT_BETWEEN&#160;</td><td class="fielddoc"><p>Format cells that is not between two values. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6baff96b7580e80b2167357a587110f0e5c"></a>LXW_CONDITIONAL_CRITERIA_TEXT_CONTAINING&#160;</td><td class="fielddoc"><p>Format cells that contain the specified text. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba20233dc769eae6248dde4f5c702d5842"></a>LXW_CONDITIONAL_CRITERIA_TEXT_NOT_CONTAINING&#160;</td><td class="fielddoc"><p>Format cells that don't contain the specified text. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6bacef71d1c45abb3597b83f3f66243fabd"></a>LXW_CONDITIONAL_CRITERIA_TEXT_BEGINS_WITH&#160;</td><td class="fielddoc"><p>Format cells that begin with the specified text. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba87a87b39d39957377f89cd0cb40fc0ee"></a>LXW_CONDITIONAL_CRITERIA_TEXT_ENDS_WITH&#160;</td><td class="fielddoc"><p>Format cells that end with the specified text. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba71c995839e4851d23289ff4505dc82c4"></a>LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_YESTERDAY&#160;</td><td class="fielddoc"><p>Format cells with a date of yesterday. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba9e812ad0c1dddeeeb0c88da9476362df"></a>LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_TODAY&#160;</td><td class="fielddoc"><p>Format cells with a date of today. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6bad8e068737fb6d9cf3f8c6d03ba480398"></a>LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_TOMORROW&#160;</td><td class="fielddoc"><p>Format cells with a date of tomorrow. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6bacad0cfdfc5fdcb4a41c60d848a88e3a9"></a>LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_LAST_7_DAYS&#160;</td><td class="fielddoc"><p>Format cells with a date in the last 7 days. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba7effdb9809e343e8a73cce6da31039a5"></a>LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_LAST_WEEK&#160;</td><td class="fielddoc"><p>Format cells with a date in the last week. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6bab774818428f3453d7e90741cd3fac1a2"></a>LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_THIS_WEEK&#160;</td><td class="fielddoc"><p>Format cells with a date in the current week. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba9721885095f7bd354ddd3c8d45110585"></a>LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_NEXT_WEEK&#160;</td><td class="fielddoc"><p>Format cells with a date in the next week. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba7305b525b5d9552f8c9796248858f987"></a>LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_LAST_MONTH&#160;</td><td class="fielddoc"><p>Format cells with a date in the last month. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba5c2e6be8b0ee591cfae2a2e7437ec35d"></a>LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_THIS_MONTH&#160;</td><td class="fielddoc"><p>Format cells with a date in the current month. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba4b1a66b229e6cb700b40facec0a278be"></a>LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_NEXT_MONTH&#160;</td><td class="fielddoc"><p>Format cells with a date in the next month. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba7abe5eb7e05b62e5722ee13ea2820be8"></a>LXW_CONDITIONAL_CRITERIA_AVERAGE_ABOVE&#160;</td><td class="fielddoc"><p>Format cells above the average for the range. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6badc3fe6291eea11883810c9291d3af4d6"></a>LXW_CONDITIONAL_CRITERIA_AVERAGE_BELOW&#160;</td><td class="fielddoc"><p>Format cells below the average for the range. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba290e8911e2cfa3fbbd64f02ddbb40465"></a>LXW_CONDITIONAL_CRITERIA_AVERAGE_ABOVE_OR_EQUAL&#160;</td><td class="fielddoc"><p>Format cells above or equal to the average for the range. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6baf2d5451a9a0972535e477237cc06a15b"></a>LXW_CONDITIONAL_CRITERIA_AVERAGE_BELOW_OR_EQUAL&#160;</td><td class="fielddoc"><p>Format cells below or equal to the average for the range. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6baba0dae0546768db046eb00a21269206f"></a>LXW_CONDITIONAL_CRITERIA_AVERAGE_1_STD_DEV_ABOVE&#160;</td><td class="fielddoc"><p>Format cells 1 standard deviation above the average for the range. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba23b2745a98c22a4f5225ef3c8d16d63a"></a>LXW_CONDITIONAL_CRITERIA_AVERAGE_1_STD_DEV_BELOW&#160;</td><td class="fielddoc"><p>Format cells 1 standard deviation below the average for the range. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba43291b0deef88804e88432385e82be1a"></a>LXW_CONDITIONAL_CRITERIA_AVERAGE_2_STD_DEV_ABOVE&#160;</td><td class="fielddoc"><p>Format cells 2 standard deviation above the average for the range. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba8694b925d1c861d103615c9f655a34a9"></a>LXW_CONDITIONAL_CRITERIA_AVERAGE_2_STD_DEV_BELOW&#160;</td><td class="fielddoc"><p>Format cells 2 standard deviation below the average for the range. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6ba7783dd28dd6f5fb261459070edc71ff7"></a>LXW_CONDITIONAL_CRITERIA_AVERAGE_3_STD_DEV_ABOVE&#160;</td><td class="fielddoc"><p>Format cells 3 standard deviation above the average for the range. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6bac455da6aa12f51e6fa2dbc34bc140ff6"></a>LXW_CONDITIONAL_CRITERIA_AVERAGE_3_STD_DEV_BELOW&#160;</td><td class="fielddoc"><p>Format cells 3 standard deviation below the average for the range. </p>
</td></tr>
<tr><td class="fieldname"><a id="a47b554f3a8f1475b57df705fd326ae6baea70f63a3805fd590298e46bcd68f444"></a>LXW_CONDITIONAL_CRITERIA_TOP_OR_BOTTOM_PERCENT&#160;</td><td class="fielddoc"><p>Format cells in the top of bottom percentage. </p>
</td></tr>
</table>

</div>
</div>
<a id="aa1c8a0821648b21a1483d743587bb8eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1c8a0821648b21a1483d743587bb8eb">&#9670;&nbsp;</a></span>lxw_conditional_format_rule_types</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="worksheet_8h.html#aa1c8a0821648b21a1483d743587bb8eb">lxw_conditional_format_rule_types</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Conditional format rule types that apply to Color Scale and Data Bars. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="aa1c8a0821648b21a1483d743587bb8eba70b727630662807963f9da7bc3d2b687"></a>LXW_CONDITIONAL_RULE_TYPE_MINIMUM&#160;</td><td class="fielddoc"><p>Conditional format rule type: matches the minimum values in the range. Can only be applied to min_rule_type. </p>
</td></tr>
<tr><td class="fieldname"><a id="aa1c8a0821648b21a1483d743587bb8eba568c6fe29a89937e792464b59d7f0f93"></a>LXW_CONDITIONAL_RULE_TYPE_NUMBER&#160;</td><td class="fielddoc"><p>Conditional format rule type: use a number to set the bound. </p>
</td></tr>
<tr><td class="fieldname"><a id="aa1c8a0821648b21a1483d743587bb8eba797bc688aec003e9ca84c49b52880f68"></a>LXW_CONDITIONAL_RULE_TYPE_PERCENT&#160;</td><td class="fielddoc"><p>Conditional format rule type: use a percentage to set the bound. </p>
</td></tr>
<tr><td class="fieldname"><a id="aa1c8a0821648b21a1483d743587bb8eba4c42f493acf1bc058cfb3fe7fe439d48"></a>LXW_CONDITIONAL_RULE_TYPE_PERCENTILE&#160;</td><td class="fielddoc"><p>Conditional format rule type: use a percentile to set the bound. </p>
</td></tr>
<tr><td class="fieldname"><a id="aa1c8a0821648b21a1483d743587bb8eba959bb3cdccd2cec2abc92bbd6fc39e53"></a>LXW_CONDITIONAL_RULE_TYPE_FORMULA&#160;</td><td class="fielddoc"><p>Conditional format rule type: use a formula to set the bound. </p>
</td></tr>
<tr><td class="fieldname"><a id="aa1c8a0821648b21a1483d743587bb8eba5946b0790ccd180983350a8d98fe5adf"></a>LXW_CONDITIONAL_RULE_TYPE_MAXIMUM&#160;</td><td class="fielddoc"><p>Conditional format rule type: matches the maximum values in the range. Can only be applied to max_rule_type. </p>
</td></tr>
</table>

</div>
</div>
<a id="a3d18ac39694d2ee9256b17e74d1f9168"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d18ac39694d2ee9256b17e74d1f9168">&#9670;&nbsp;</a></span>lxw_conditional_format_bar_direction</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="worksheet_8h.html#a3d18ac39694d2ee9256b17e74d1f9168">lxw_conditional_format_bar_direction</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Values used to set the bar direction of a conditional format data bar. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a3d18ac39694d2ee9256b17e74d1f9168a7eadfdad6c89240406dad258dccc24f4"></a>LXW_CONDITIONAL_BAR_DIRECTION_CONTEXT&#160;</td><td class="fielddoc"><p>Data bar direction is set by Excel based on the context of the data displayed. </p>
</td></tr>
<tr><td class="fieldname"><a id="a3d18ac39694d2ee9256b17e74d1f9168a1aa9036eda34cd072c021b8a391fcf1a"></a>LXW_CONDITIONAL_BAR_DIRECTION_RIGHT_TO_LEFT&#160;</td><td class="fielddoc"><p>Data bar direction is from right to left. </p>
</td></tr>
<tr><td class="fieldname"><a id="a3d18ac39694d2ee9256b17e74d1f9168a6756d1b288252f1899e1322c2e7a8471"></a>LXW_CONDITIONAL_BAR_DIRECTION_LEFT_TO_RIGHT&#160;</td><td class="fielddoc"><p>Data bar direction is from left to right. </p>
</td></tr>
</table>

</div>
</div>
<a id="a2398cf8e7d31f525508cd8c333877025"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2398cf8e7d31f525508cd8c333877025">&#9670;&nbsp;</a></span>lxw_conditional_bar_axis_position</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="worksheet_8h.html#a2398cf8e7d31f525508cd8c333877025">lxw_conditional_bar_axis_position</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Values used to set the position of the axis in a conditional format data bar. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a2398cf8e7d31f525508cd8c333877025aa904b9b45e826c6c65bd16e1f351e421"></a>LXW_CONDITIONAL_BAR_AXIS_AUTOMATIC&#160;</td><td class="fielddoc"><p>Data bar axis position is set by Excel based on the context of the data displayed. </p>
</td></tr>
<tr><td class="fieldname"><a id="a2398cf8e7d31f525508cd8c333877025a37c104277f4e3e558ceec07816b1576d"></a>LXW_CONDITIONAL_BAR_AXIS_MIDPOINT&#160;</td><td class="fielddoc"><p>Data bar axis position is set at the midpoint. </p>
</td></tr>
<tr><td class="fieldname"><a id="a2398cf8e7d31f525508cd8c333877025ac11bb0e69ad383bc8d5be75c5320756d"></a>LXW_CONDITIONAL_BAR_AXIS_NONE&#160;</td><td class="fielddoc"><p>Data bar axis is turned off. </p>
</td></tr>
</table>

</div>
</div>
<a id="aaeb0374167b23080c63eccac2a64840b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaeb0374167b23080c63eccac2a64840b">&#9670;&nbsp;</a></span>lxw_conditional_icon_types</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840b">lxw_conditional_icon_types</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Definitions of icon styles used with Icon Set conditional formats. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840ba2a85edc11a29e1ed4ef360b758c4fa58"></a>LXW_CONDITIONAL_ICONS_3_ARROWS_COLORED&#160;</td><td class="fielddoc"><p>Icon style: 3 colored arrows showing up, sideways and down. </p>
</td></tr>
<tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840ba77987e3dbf3db5affcf27d7795f803f4"></a>LXW_CONDITIONAL_ICONS_3_ARROWS_GRAY&#160;</td><td class="fielddoc"><p>Icon style: 3 gray arrows showing up, sideways and down. </p>
</td></tr>
<tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840ba28d0971bdd685c184a02fdba9d13365a"></a>LXW_CONDITIONAL_ICONS_3_FLAGS&#160;</td><td class="fielddoc"><p>Icon style: 3 colored flags in red, yellow and green. </p>
</td></tr>
<tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840ba24f085582f0fe3e87f99686d090c45ca"></a>LXW_CONDITIONAL_ICONS_3_TRAFFIC_LIGHTS_UNRIMMED&#160;</td><td class="fielddoc"><p>Icon style: 3 traffic lights - rounded. </p>
</td></tr>
<tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840baa77f39bba5103bee55b112ae958b8fed"></a>LXW_CONDITIONAL_ICONS_3_TRAFFIC_LIGHTS_RIMMED&#160;</td><td class="fielddoc"><p>Icon style: 3 traffic lights with a rim - squarish. </p>
</td></tr>
<tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840ba455ff03a2d12d85ddf5fc8572ee151d0"></a>LXW_CONDITIONAL_ICONS_3_SIGNS&#160;</td><td class="fielddoc"><p>Icon style: 3 colored shapes - a circle, triangle and diamond. </p>
</td></tr>
<tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840ba8baa0f98d3771c07f83fc4d10a6db870"></a>LXW_CONDITIONAL_ICONS_3_SYMBOLS_CIRCLED&#160;</td><td class="fielddoc"><p>Icon style: 3 circled symbols with tick mark, exclamation and cross. </p>
</td></tr>
<tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840bac4d4e7e8cda8578ad851c2086c233fe1"></a>LXW_CONDITIONAL_ICONS_3_SYMBOLS_UNCIRCLED&#160;</td><td class="fielddoc"><p>Icon style: 3 symbols with tick mark, exclamation and cross. </p>
</td></tr>
<tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840ba0f081e87021b94c85c5f513bee20cefc"></a>LXW_CONDITIONAL_ICONS_4_ARROWS_COLORED&#160;</td><td class="fielddoc"><p>Icon style: 3 colored arrows showing up, diagonal up, diagonal down and down. </p>
</td></tr>
<tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840ba31dcd78a47ab9c51a775d424ff125b75"></a>LXW_CONDITIONAL_ICONS_4_ARROWS_GRAY&#160;</td><td class="fielddoc"><p>Icon style: 3 gray arrows showing up, diagonal up, diagonal down and down. </p>
</td></tr>
<tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840ba780b3f28f5c9b6a51c3da515bc09d698"></a>LXW_CONDITIONAL_ICONS_4_RED_TO_BLACK&#160;</td><td class="fielddoc"><p>Icon style: 4 circles in 4 colors going from red to black. </p>
</td></tr>
<tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840bab814d3cdca3479db41dec59ccf3659c4"></a>LXW_CONDITIONAL_ICONS_4_RATINGS&#160;</td><td class="fielddoc"><p>Icon style: 4 histogram ratings. </p>
</td></tr>
<tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840bac49a620b3ce04826bb4bfe1faa8cb20b"></a>LXW_CONDITIONAL_ICONS_4_TRAFFIC_LIGHTS&#160;</td><td class="fielddoc"><p>Icon style: 4 traffic lights. </p>
</td></tr>
<tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840ba20cf7c4a18ecd5aa81b5f1e3887d3c3f"></a>LXW_CONDITIONAL_ICONS_5_ARROWS_COLORED&#160;</td><td class="fielddoc"><p>Icon style: 5 colored arrows showing up, diagonal up, sideways, diagonal down and down. </p>
</td></tr>
<tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840ba88cd70a2ecb36a92e5f0c96c8e2bab71"></a>LXW_CONDITIONAL_ICONS_5_ARROWS_GRAY&#160;</td><td class="fielddoc"><p>Icon style: 5 gray arrows showing up, diagonal up, sideways, diagonal down and down. </p>
</td></tr>
<tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840baf492caa7c54d3c2303666083bba40662"></a>LXW_CONDITIONAL_ICONS_5_RATINGS&#160;</td><td class="fielddoc"><p>Icon style: 5 histogram ratings. </p>
</td></tr>
<tr><td class="fieldname"><a id="aaeb0374167b23080c63eccac2a64840ba31f0fe48d54fa205abfa0a7d88ca102d"></a>LXW_CONDITIONAL_ICONS_5_QUARTERS&#160;</td><td class="fielddoc"><p>Icon style: 5 quarters, from 0 to 4 quadrants filled. </p>
</td></tr>
</table>

</div>
</div>
<a id="a915c52f231594642bad90422c5b2cf81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a915c52f231594642bad90422c5b2cf81">&#9670;&nbsp;</a></span>lxw_object_position</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="worksheet_8h.html#a915c52f231594642bad90422c5b2cf81">lxw_object_position</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Options to control the positioning of worksheet objects such as images or charts. See <a class="el" href="working_with_object_positioning.html">Working with Object Positioning</a>. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a915c52f231594642bad90422c5b2cf81a9241d2348b2f692d3973d89f46a848a9"></a>LXW_OBJECT_POSITION_DEFAULT&#160;</td><td class="fielddoc"><p>Default positioning for the object. </p>
</td></tr>
<tr><td class="fieldname"><a id="a915c52f231594642bad90422c5b2cf81a3a7fd9f3ceaa180ddba415b8b7d80f68"></a>LXW_OBJECT_MOVE_AND_SIZE&#160;</td><td class="fielddoc"><p>Move and size with the worksheet object with the cells. </p>
</td></tr>
<tr><td class="fieldname"><a id="a915c52f231594642bad90422c5b2cf81ae8e56c6314407205b48e9e8085926182"></a>LXW_OBJECT_MOVE_DONT_SIZE&#160;</td><td class="fielddoc"><p>Move but don't size with the worksheet object with the cells. </p>
</td></tr>
<tr><td class="fieldname"><a id="a915c52f231594642bad90422c5b2cf81a2ce8ef5e158013c4872d312fb6b2e1a4"></a>LXW_OBJECT_DONT_MOVE_DONT_SIZE&#160;</td><td class="fielddoc"><p>Don't move or size the worksheet object with the cells. </p>
</td></tr>
<tr><td class="fieldname"><a id="a915c52f231594642bad90422c5b2cf81a833c0825a5e212ad263a20346d972a93"></a>LXW_OBJECT_MOVE_AND_SIZE_AFTER&#160;</td><td class="fielddoc"><p>Same as <a class="el" href="worksheet_8h.html#a915c52f231594642bad90422c5b2cf81a3a7fd9f3ceaa180ddba415b8b7d80f68">LXW_OBJECT_MOVE_AND_SIZE</a> except libxlsxwriter applies hidden cells after the object is inserted. </p>
</td></tr>
</table>

</div>
</div>
<a id="a8d5ed222f464ed30865534f04bd85b22"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d5ed222f464ed30865534f04bd85b22">&#9670;&nbsp;</a></span>lxw_ignore_errors</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22">lxw_ignore_errors</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Options for ignoring worksheet errors/warnings. See <a class="el" href="worksheet_8h.html#af052fbb1e438c622b873ca3ebd6ef0f4" title="Ignore various Excel errors/warnings in a worksheet for user defined ranges.">worksheet_ignore_errors()</a>. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a8d5ed222f464ed30865534f04bd85b22add1e6023e41e40f36e290f0b3514460b"></a>LXW_IGNORE_NUMBER_STORED_AS_TEXT&#160;</td><td class="fielddoc"><p>Turn off errors/warnings for numbers stores as text. </p>
</td></tr>
<tr><td class="fieldname"><a id="a8d5ed222f464ed30865534f04bd85b22ae8cd84ea345808631d6c5a33c0218d5a"></a>LXW_IGNORE_EVAL_ERROR&#160;</td><td class="fielddoc"><p>Turn off errors/warnings for formula errors (such as divide by zero). </p>
</td></tr>
<tr><td class="fieldname"><a id="a8d5ed222f464ed30865534f04bd85b22a61bb58652f573e3643b911dde3d17c12"></a>LXW_IGNORE_FORMULA_DIFFERS&#160;</td><td class="fielddoc"><p>Turn off errors/warnings for formulas that differ from surrounding formulas. </p>
</td></tr>
<tr><td class="fieldname"><a id="a8d5ed222f464ed30865534f04bd85b22a476dc8ef5536270c27645ab2a88e2717"></a>LXW_IGNORE_FORMULA_RANGE&#160;</td><td class="fielddoc"><p>Turn off errors/warnings for formulas that omit cells in a range. </p>
</td></tr>
<tr><td class="fieldname"><a id="a8d5ed222f464ed30865534f04bd85b22accf664e190a32d5ea8faa08f36662d1d"></a>LXW_IGNORE_FORMULA_UNLOCKED&#160;</td><td class="fielddoc"><p>Turn off errors/warnings for unlocked cells that contain formulas. </p>
</td></tr>
<tr><td class="fieldname"><a id="a8d5ed222f464ed30865534f04bd85b22a8e96b5ae88901743ee89658ba2fc9510"></a>LXW_IGNORE_EMPTY_CELL_REFERENCE&#160;</td><td class="fielddoc"><p>Turn off errors/warnings for formulas that refer to empty cells. </p>
</td></tr>
<tr><td class="fieldname"><a id="a8d5ed222f464ed30865534f04bd85b22a8d8482fcf797787cb0aef15eda546dc1"></a>LXW_IGNORE_LIST_DATA_VALIDATION&#160;</td><td class="fielddoc"><p>Turn off errors/warnings for cells in a table that do not comply with applicable data validation rules. </p>
</td></tr>
<tr><td class="fieldname"><a id="a8d5ed222f464ed30865534f04bd85b22a39f33893037a8f1b6eac268b894cdcec"></a>LXW_IGNORE_CALCULATED_COLUMN&#160;</td><td class="fielddoc"><p>Turn off errors/warnings for cell formulas that differ from the column formula. </p>
</td></tr>
<tr><td class="fieldname"><a id="a8d5ed222f464ed30865534f04bd85b22ac41cb6a61704e4bf0b7e874febdab240"></a>LXW_IGNORE_TWO_DIGIT_TEXT_YEAR&#160;</td><td class="fielddoc"><p>Turn off errors/warnings for formulas that contain a two digit text representation of a year. </p>
</td></tr>
</table>

</div>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlxw__row__col__options.html">lxw_row_col_options</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Options for rows and columns.  <a href="structlxw__row__col__options.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlxw__data__validation.html">lxw_data_validation</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Worksheet data validation options.  <a href="structlxw__data__validation.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlxw__conditional__format.html">lxw_conditional_format</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Worksheet conditional formatting options.  <a href="structlxw__conditional__format.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlxw__image__options.html">lxw_image_options</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Options for inserted images.  <a href="structlxw__image__options.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlxw__chart__options.html">lxw_chart_options</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Options for inserted charts.  <a href="structlxw__chart__options.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlxw__comment__options.html">lxw_comment_options</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Options for inserted comments.  <a href="structlxw__comment__options.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlxw__header__footer__options.html">lxw_header_footer_options</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Header and footer options.  <a href="structlxw__header__footer__options.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlxw__protection.html">lxw_protection</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Worksheet protection options.  <a href="structlxw__protection.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Struct to represent a rich string format/string pair.  <a href="structlxw__rich__string__tuple.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlxw__worksheet.html">lxw_worksheet</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Struct to represent an Excel worksheet.  <a href="structlxw__worksheet.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:add618530e9c1cc294dd630b75e03d0a4"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structlxw__row__col__options.html">lxw_row_col_options</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#add618530e9c1cc294dd630b75e03d0a4">lxw_row_col_options</a></td></tr>
<tr class="memdesc:add618530e9c1cc294dd630b75e03d0a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Options for rows and columns.  <a href="worksheet_8h.html#add618530e9c1cc294dd630b75e03d0a4">More...</a><br /></td></tr>
<tr class="separator:add618530e9c1cc294dd630b75e03d0a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4e3606d09d0d2091269bf8c862045d8"><td class="memItemLeft" align="right" valign="top"><a id="ac4e3606d09d0d2091269bf8c862045d8"></a>
typedef struct <a class="el" href="structlxw__data__validation.html">lxw_data_validation</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#ac4e3606d09d0d2091269bf8c862045d8">lxw_data_validation</a></td></tr>
<tr class="memdesc:ac4e3606d09d0d2091269bf8c862045d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Worksheet data validation options. <br /></td></tr>
<tr class="separator:ac4e3606d09d0d2091269bf8c862045d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d0423d4365c80b46ffcbaee30c969fa"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structlxw__conditional__format.html">lxw_conditional_format</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a7d0423d4365c80b46ffcbaee30c969fa">lxw_conditional_format</a></td></tr>
<tr class="memdesc:a7d0423d4365c80b46ffcbaee30c969fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Worksheet conditional formatting options.  <a href="worksheet_8h.html#a7d0423d4365c80b46ffcbaee30c969fa">More...</a><br /></td></tr>
<tr class="separator:a7d0423d4365c80b46ffcbaee30c969fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a140925dd5202b107d7b28d2ba5d357cc"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structlxw__image__options.html">lxw_image_options</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a140925dd5202b107d7b28d2ba5d357cc">lxw_image_options</a></td></tr>
<tr class="memdesc:a140925dd5202b107d7b28d2ba5d357cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Options for inserted images.  <a href="worksheet_8h.html#a140925dd5202b107d7b28d2ba5d357cc">More...</a><br /></td></tr>
<tr class="separator:a140925dd5202b107d7b28d2ba5d357cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa979b59646b1df942572e8bcad1cf211"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structlxw__chart__options.html">lxw_chart_options</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#aa979b59646b1df942572e8bcad1cf211">lxw_chart_options</a></td></tr>
<tr class="memdesc:aa979b59646b1df942572e8bcad1cf211"><td class="mdescLeft">&#160;</td><td class="mdescRight">Options for inserted charts.  <a href="worksheet_8h.html#aa979b59646b1df942572e8bcad1cf211">More...</a><br /></td></tr>
<tr class="separator:aa979b59646b1df942572e8bcad1cf211"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac23f4cd038bb0e488239c4c09d8cca83"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structlxw__comment__options.html">lxw_comment_options</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#ac23f4cd038bb0e488239c4c09d8cca83">lxw_comment_options</a></td></tr>
<tr class="memdesc:ac23f4cd038bb0e488239c4c09d8cca83"><td class="mdescLeft">&#160;</td><td class="mdescRight">Options for inserted comments.  <a href="worksheet_8h.html#ac23f4cd038bb0e488239c4c09d8cca83">More...</a><br /></td></tr>
<tr class="separator:ac23f4cd038bb0e488239c4c09d8cca83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03f0acb4a55150e3c41200eb8e04a780"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structlxw__header__footer__options.html">lxw_header_footer_options</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a03f0acb4a55150e3c41200eb8e04a780">lxw_header_footer_options</a></td></tr>
<tr class="memdesc:a03f0acb4a55150e3c41200eb8e04a780"><td class="mdescLeft">&#160;</td><td class="mdescRight">Header and footer options.  <a href="worksheet_8h.html#a03f0acb4a55150e3c41200eb8e04a780">More...</a><br /></td></tr>
<tr class="separator:a03f0acb4a55150e3c41200eb8e04a780"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73c24b7293e1781e13af797fc7987ae5"><td class="memItemLeft" align="right" valign="top"><a id="a73c24b7293e1781e13af797fc7987ae5"></a>
typedef struct <a class="el" href="structlxw__protection.html">lxw_protection</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a73c24b7293e1781e13af797fc7987ae5">lxw_protection</a></td></tr>
<tr class="memdesc:a73c24b7293e1781e13af797fc7987ae5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Worksheet protection options. <br /></td></tr>
<tr class="separator:a73c24b7293e1781e13af797fc7987ae5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34d1283860bf01af1b996f80023d5123"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a34d1283860bf01af1b996f80023d5123">lxw_rich_string_tuple</a></td></tr>
<tr class="memdesc:a34d1283860bf01af1b996f80023d5123"><td class="mdescLeft">&#160;</td><td class="mdescRight">Struct to represent a rich string format/string pair.  <a href="worksheet_8h.html#a34d1283860bf01af1b996f80023d5123">More...</a><br /></td></tr>
<tr class="separator:a34d1283860bf01af1b996f80023d5123"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cb3d63a2495319e1a10db5ff55dfa11"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structlxw__worksheet.html">lxw_worksheet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a4cb3d63a2495319e1a10db5ff55dfa11">lxw_worksheet</a></td></tr>
<tr class="memdesc:a4cb3d63a2495319e1a10db5ff55dfa11"><td class="mdescLeft">&#160;</td><td class="mdescRight">Struct to represent an Excel worksheet.  <a href="worksheet_8h.html#a4cb3d63a2495319e1a10db5ff55dfa11">More...</a><br /></td></tr>
<tr class="separator:a4cb3d63a2495319e1a10db5ff55dfa11"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a487e0bffad0a348421b825d715621c20"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a487e0bffad0a348421b825d715621c20">lxw_gridlines</a> { <a class="el" href="worksheet_8h.html#a487e0bffad0a348421b825d715621c20a3fa67c27394bd03fa6642a501598f70b">LXW_HIDE_ALL_GRIDLINES</a> = 0, 
<a class="el" href="worksheet_8h.html#a487e0bffad0a348421b825d715621c20af5a038f9024f0d20793a77315e9245f9">LXW_SHOW_SCREEN_GRIDLINES</a>, 
<a class="el" href="worksheet_8h.html#a487e0bffad0a348421b825d715621c20a6ad2d5f382b103286ccdf7561a9d2328">LXW_SHOW_PRINT_GRIDLINES</a>, 
<a class="el" href="worksheet_8h.html#a487e0bffad0a348421b825d715621c20a1dc7944e44eb6ae060dc6ef457b62e04">LXW_SHOW_ALL_GRIDLINES</a>
 }</td></tr>
<tr class="separator:a487e0bffad0a348421b825d715621c20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00c0cb6be9a2864d2a4cc977eadea74b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a00c0cb6be9a2864d2a4cc977eadea74b">lxw_validation_boolean</a> { , <a class="el" href="worksheet_8h.html#a00c0cb6be9a2864d2a4cc977eadea74ba9d4f1bdb9ed0a87ffad0153c85feb786">LXW_VALIDATION_OFF</a>, 
<a class="el" href="worksheet_8h.html#a00c0cb6be9a2864d2a4cc977eadea74ba8005924508401ae160533818e7cf32bb">LXW_VALIDATION_ON</a>
 }</td></tr>
<tr class="separator:a00c0cb6be9a2864d2a4cc977eadea74b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20e0dbd70400f2eb7c5d88696f812b4c"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4c">lxw_validation_types</a> { , <br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4ca0952e8f509c60eca7015ac69ed47b4e5">LXW_VALIDATION_TYPE_INTEGER</a>, 
<a class="el" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4ca823e5e00d1a36b40579f998b4704ddb5">LXW_VALIDATION_TYPE_INTEGER_FORMULA</a>, 
<a class="el" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4ca6f1306cd335680b95c51a4d97fcfb36c">LXW_VALIDATION_TYPE_DECIMAL</a>, 
<a class="el" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4caaca4ee31d7b937dc130dd9623257a44a">LXW_VALIDATION_TYPE_DECIMAL_FORMULA</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4ca7d721cc2b76618d8d2fb105ca4717de0">LXW_VALIDATION_TYPE_LIST</a>, 
<a class="el" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4ca4c4cbe18adcd6bef7cadf8f3b467b795">LXW_VALIDATION_TYPE_LIST_FORMULA</a>, 
<a class="el" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4ca85eedf0278f7bf4d86de1bde505afd5b">LXW_VALIDATION_TYPE_DATE</a>, 
<a class="el" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4cacd6f3d9e53bf64c4c0988f1ead5384c2">LXW_VALIDATION_TYPE_DATE_FORMULA</a>
, <br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4ca5d77c63d440a5ecedc33ce41d7d60521">LXW_VALIDATION_TYPE_TIME</a>, 
<a class="el" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4ca4a21e111494a0927a836e38037164296">LXW_VALIDATION_TYPE_TIME_FORMULA</a>
, <a class="el" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4ca9e8f789b6ae1df30d4a8fc08aca931bf">LXW_VALIDATION_TYPE_LENGTH</a>, 
<a class="el" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4ca84961de2afdce792c486f2171f5413eb">LXW_VALIDATION_TYPE_LENGTH_FORMULA</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4cad84ccc6ea31ad28577827a432ec51c18">LXW_VALIDATION_TYPE_CUSTOM_FORMULA</a>, 
<a class="el" href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4caa4f7be1cd3469867793125f32fc36902">LXW_VALIDATION_TYPE_ANY</a>
<br />
 }</td></tr>
<tr class="separator:a20e0dbd70400f2eb7c5d88696f812b4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88eed033ce0af97d5151528bc514fbf5"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a88eed033ce0af97d5151528bc514fbf5">lxw_validation_criteria</a> { , <br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a88eed033ce0af97d5151528bc514fbf5a2f5a8dc34e8bd8b298372f2a09102bd9">LXW_VALIDATION_CRITERIA_BETWEEN</a>, 
<a class="el" href="worksheet_8h.html#a88eed033ce0af97d5151528bc514fbf5aadc0c03ed751e7be70a4adad2797dacd">LXW_VALIDATION_CRITERIA_NOT_BETWEEN</a>, 
<a class="el" href="worksheet_8h.html#a88eed033ce0af97d5151528bc514fbf5a5c8d6a174e2dff4519a2991f9009c351">LXW_VALIDATION_CRITERIA_EQUAL_TO</a>, 
<a class="el" href="worksheet_8h.html#a88eed033ce0af97d5151528bc514fbf5af0d45b3841976d2477203a9dc7361009">LXW_VALIDATION_CRITERIA_NOT_EQUAL_TO</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a88eed033ce0af97d5151528bc514fbf5a5d447b6753a600ad638b27cb1fd596d1">LXW_VALIDATION_CRITERIA_GREATER_THAN</a>, 
<a class="el" href="worksheet_8h.html#a88eed033ce0af97d5151528bc514fbf5ac6c585c5b61cf957cf1e88b8372ffc25">LXW_VALIDATION_CRITERIA_LESS_THAN</a>, 
<a class="el" href="worksheet_8h.html#a88eed033ce0af97d5151528bc514fbf5a97cc92910532a79dbf609e93bc01c07a">LXW_VALIDATION_CRITERIA_GREATER_THAN_OR_EQUAL_TO</a>, 
<a class="el" href="worksheet_8h.html#a88eed033ce0af97d5151528bc514fbf5aedc85c3c49615ba6f20230db04bcfba8">LXW_VALIDATION_CRITERIA_LESS_THAN_OR_EQUAL_TO</a>
<br />
 }</td></tr>
<tr class="separator:a88eed033ce0af97d5151528bc514fbf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a814e4b2e983125351c617e44b73b8998"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a814e4b2e983125351c617e44b73b8998">lxw_validation_error_types</a> { <a class="el" href="worksheet_8h.html#a814e4b2e983125351c617e44b73b8998af2543462835dcdb58f6ff862613bb3ea">LXW_VALIDATION_ERROR_TYPE_STOP</a>, 
<a class="el" href="worksheet_8h.html#a814e4b2e983125351c617e44b73b8998a53ca53803c257552740056bf44b18b98">LXW_VALIDATION_ERROR_TYPE_WARNING</a>, 
<a class="el" href="worksheet_8h.html#a814e4b2e983125351c617e44b73b8998a971dd668c9e360e76bde86a87fb373a7">LXW_VALIDATION_ERROR_TYPE_INFORMATION</a>
 }</td></tr>
<tr class="separator:a814e4b2e983125351c617e44b73b8998"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad352c6cf9a5359d4cda51839a91c7d2"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#aad352c6cf9a5359d4cda51839a91c7d2">lxw_comment_display_types</a> { <a class="el" href="worksheet_8h.html#aad352c6cf9a5359d4cda51839a91c7d2a14b85b7b724e3866d08026f0508528fe">LXW_COMMENT_DISPLAY_DEFAULT</a>, 
<a class="el" href="worksheet_8h.html#aad352c6cf9a5359d4cda51839a91c7d2a3d229e4bc94662b4ed744abd40182728">LXW_COMMENT_DISPLAY_HIDDEN</a>, 
<a class="el" href="worksheet_8h.html#aad352c6cf9a5359d4cda51839a91c7d2a3d78b49cb38d25b6d5473a1c0112404d">LXW_COMMENT_DISPLAY_VISIBLE</a>
 }</td></tr>
<tr class="separator:aad352c6cf9a5359d4cda51839a91c7d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affdc3f401f3ee241fad5d651628ac92d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92d">lxw_conditional_format_types</a> { , <br />
&#160;&#160;<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92dac9180feb375f5d9302d80467398a0c6e">LXW_CONDITIONAL_TYPE_CELL</a>, 
<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92dacd711f072b3130ccd6ef1c233eba0298">LXW_CONDITIONAL_TYPE_TEXT</a>, 
<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92da2101fa174d43f88be22789112afb3716">LXW_CONDITIONAL_TYPE_TIME_PERIOD</a>, 
<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92dabdae15fb9048bcd6823c8ff02b553548">LXW_CONDITIONAL_TYPE_AVERAGE</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92da288a6952f520145b6c00e5ad6d273370">LXW_CONDITIONAL_TYPE_DUPLICATE</a>, 
<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92da058193bb32dae5557ced4117f57a8182">LXW_CONDITIONAL_TYPE_UNIQUE</a>, 
<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92da0d7cc55cbacac31182eef8bb16b69ab6">LXW_CONDITIONAL_TYPE_TOP</a>, 
<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92da2da918db0a1930d2e8f818e14424d824">LXW_CONDITIONAL_TYPE_BOTTOM</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92da0187499e69ed35a00706a2749c967534">LXW_CONDITIONAL_TYPE_BLANKS</a>, 
<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92da84fcba60bd3f6efa052ba4154a155031">LXW_CONDITIONAL_TYPE_NO_BLANKS</a>, 
<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92dadd06584e94945519df4fc2252882e374">LXW_CONDITIONAL_TYPE_ERRORS</a>, 
<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92da70562e7676d45e65a932623728250058">LXW_CONDITIONAL_TYPE_NO_ERRORS</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92da970b8654514d6525221bc71da66c5550">LXW_CONDITIONAL_TYPE_FORMULA</a>, 
<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92da073422bf8a6df5ddbabb3763aa7b27d8">LXW_CONDITIONAL_2_COLOR_SCALE</a>, 
<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92da95e1b05b230b8964f78d676d0b114ed2">LXW_CONDITIONAL_3_COLOR_SCALE</a>, 
<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92dae0c88a53343690c1f43385b466dfe45e">LXW_CONDITIONAL_DATA_BAR</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92dad29f06d444d5d900d076551cf057eee5">LXW_CONDITIONAL_TYPE_ICON_SETS</a>
<br />
 }</td></tr>
<tr class="memdesc:affdc3f401f3ee241fad5d651628ac92d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Type definitions for conditional formats.  <a href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92d">More...</a><br /></td></tr>
<tr class="separator:affdc3f401f3ee241fad5d651628ac92d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47b554f3a8f1475b57df705fd326ae6b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6b">lxw_conditional_criteria</a> { , <br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba70fa69c881508f2643929964ba0c2816">LXW_CONDITIONAL_CRITERIA_EQUAL_TO</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba84a03fcabb316bc4e0dcf7227506c1b6">LXW_CONDITIONAL_CRITERIA_NOT_EQUAL_TO</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba10ffa392949de59161307149c55a971b">LXW_CONDITIONAL_CRITERIA_GREATER_THAN</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6bae8a15acdb209feb53b8948c0e50cc9c3">LXW_CONDITIONAL_CRITERIA_LESS_THAN</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6bad288ab1847d59fa1183555c5a82c4d11">LXW_CONDITIONAL_CRITERIA_GREATER_THAN_OR_EQUAL_TO</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6bac8f3cc21e16b8c6d029a9879f5835f41">LXW_CONDITIONAL_CRITERIA_LESS_THAN_OR_EQUAL_TO</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba085943843b38880c58d2af4cd5e85c94">LXW_CONDITIONAL_CRITERIA_BETWEEN</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba1bf47932d37f00e5585273f0f6759075">LXW_CONDITIONAL_CRITERIA_NOT_BETWEEN</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6baff96b7580e80b2167357a587110f0e5c">LXW_CONDITIONAL_CRITERIA_TEXT_CONTAINING</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba20233dc769eae6248dde4f5c702d5842">LXW_CONDITIONAL_CRITERIA_TEXT_NOT_CONTAINING</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6bacef71d1c45abb3597b83f3f66243fabd">LXW_CONDITIONAL_CRITERIA_TEXT_BEGINS_WITH</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba87a87b39d39957377f89cd0cb40fc0ee">LXW_CONDITIONAL_CRITERIA_TEXT_ENDS_WITH</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba71c995839e4851d23289ff4505dc82c4">LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_YESTERDAY</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba9e812ad0c1dddeeeb0c88da9476362df">LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_TODAY</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6bad8e068737fb6d9cf3f8c6d03ba480398">LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_TOMORROW</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6bacad0cfdfc5fdcb4a41c60d848a88e3a9">LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_LAST_7_DAYS</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba7effdb9809e343e8a73cce6da31039a5">LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_LAST_WEEK</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6bab774818428f3453d7e90741cd3fac1a2">LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_THIS_WEEK</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba9721885095f7bd354ddd3c8d45110585">LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_NEXT_WEEK</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba7305b525b5d9552f8c9796248858f987">LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_LAST_MONTH</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba5c2e6be8b0ee591cfae2a2e7437ec35d">LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_THIS_MONTH</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba4b1a66b229e6cb700b40facec0a278be">LXW_CONDITIONAL_CRITERIA_TIME_PERIOD_NEXT_MONTH</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba7abe5eb7e05b62e5722ee13ea2820be8">LXW_CONDITIONAL_CRITERIA_AVERAGE_ABOVE</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6badc3fe6291eea11883810c9291d3af4d6">LXW_CONDITIONAL_CRITERIA_AVERAGE_BELOW</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba290e8911e2cfa3fbbd64f02ddbb40465">LXW_CONDITIONAL_CRITERIA_AVERAGE_ABOVE_OR_EQUAL</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6baf2d5451a9a0972535e477237cc06a15b">LXW_CONDITIONAL_CRITERIA_AVERAGE_BELOW_OR_EQUAL</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6baba0dae0546768db046eb00a21269206f">LXW_CONDITIONAL_CRITERIA_AVERAGE_1_STD_DEV_ABOVE</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba23b2745a98c22a4f5225ef3c8d16d63a">LXW_CONDITIONAL_CRITERIA_AVERAGE_1_STD_DEV_BELOW</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba43291b0deef88804e88432385e82be1a">LXW_CONDITIONAL_CRITERIA_AVERAGE_2_STD_DEV_ABOVE</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba8694b925d1c861d103615c9f655a34a9">LXW_CONDITIONAL_CRITERIA_AVERAGE_2_STD_DEV_BELOW</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6ba7783dd28dd6f5fb261459070edc71ff7">LXW_CONDITIONAL_CRITERIA_AVERAGE_3_STD_DEV_ABOVE</a>, 
<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6bac455da6aa12f51e6fa2dbc34bc140ff6">LXW_CONDITIONAL_CRITERIA_AVERAGE_3_STD_DEV_BELOW</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6baea70f63a3805fd590298e46bcd68f444">LXW_CONDITIONAL_CRITERIA_TOP_OR_BOTTOM_PERCENT</a>
<br />
 }</td></tr>
<tr class="memdesc:a47b554f3a8f1475b57df705fd326ae6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">The criteria used in a conditional format.  <a href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6b">More...</a><br /></td></tr>
<tr class="separator:a47b554f3a8f1475b57df705fd326ae6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1c8a0821648b21a1483d743587bb8eb"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#aa1c8a0821648b21a1483d743587bb8eb">lxw_conditional_format_rule_types</a> { , <br />
&#160;&#160;<a class="el" href="worksheet_8h.html#aa1c8a0821648b21a1483d743587bb8eba70b727630662807963f9da7bc3d2b687">LXW_CONDITIONAL_RULE_TYPE_MINIMUM</a>, 
<a class="el" href="worksheet_8h.html#aa1c8a0821648b21a1483d743587bb8eba568c6fe29a89937e792464b59d7f0f93">LXW_CONDITIONAL_RULE_TYPE_NUMBER</a>, 
<a class="el" href="worksheet_8h.html#aa1c8a0821648b21a1483d743587bb8eba797bc688aec003e9ca84c49b52880f68">LXW_CONDITIONAL_RULE_TYPE_PERCENT</a>, 
<a class="el" href="worksheet_8h.html#aa1c8a0821648b21a1483d743587bb8eba4c42f493acf1bc058cfb3fe7fe439d48">LXW_CONDITIONAL_RULE_TYPE_PERCENTILE</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#aa1c8a0821648b21a1483d743587bb8eba959bb3cdccd2cec2abc92bbd6fc39e53">LXW_CONDITIONAL_RULE_TYPE_FORMULA</a>, 
<a class="el" href="worksheet_8h.html#aa1c8a0821648b21a1483d743587bb8eba5946b0790ccd180983350a8d98fe5adf">LXW_CONDITIONAL_RULE_TYPE_MAXIMUM</a>
<br />
 }</td></tr>
<tr class="memdesc:aa1c8a0821648b21a1483d743587bb8eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Conditional format rule types.  <a href="worksheet_8h.html#aa1c8a0821648b21a1483d743587bb8eb">More...</a><br /></td></tr>
<tr class="separator:aa1c8a0821648b21a1483d743587bb8eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d18ac39694d2ee9256b17e74d1f9168"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a3d18ac39694d2ee9256b17e74d1f9168">lxw_conditional_format_bar_direction</a> { <a class="el" href="worksheet_8h.html#a3d18ac39694d2ee9256b17e74d1f9168a7eadfdad6c89240406dad258dccc24f4">LXW_CONDITIONAL_BAR_DIRECTION_CONTEXT</a>, 
<a class="el" href="worksheet_8h.html#a3d18ac39694d2ee9256b17e74d1f9168a1aa9036eda34cd072c021b8a391fcf1a">LXW_CONDITIONAL_BAR_DIRECTION_RIGHT_TO_LEFT</a>, 
<a class="el" href="worksheet_8h.html#a3d18ac39694d2ee9256b17e74d1f9168a6756d1b288252f1899e1322c2e7a8471">LXW_CONDITIONAL_BAR_DIRECTION_LEFT_TO_RIGHT</a>
 }</td></tr>
<tr class="memdesc:a3d18ac39694d2ee9256b17e74d1f9168"><td class="mdescLeft">&#160;</td><td class="mdescRight">Conditional format data bar directions.  <a href="worksheet_8h.html#a3d18ac39694d2ee9256b17e74d1f9168">More...</a><br /></td></tr>
<tr class="separator:a3d18ac39694d2ee9256b17e74d1f9168"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2398cf8e7d31f525508cd8c333877025"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a2398cf8e7d31f525508cd8c333877025">lxw_conditional_bar_axis_position</a> { <a class="el" href="worksheet_8h.html#a2398cf8e7d31f525508cd8c333877025aa904b9b45e826c6c65bd16e1f351e421">LXW_CONDITIONAL_BAR_AXIS_AUTOMATIC</a>, 
<a class="el" href="worksheet_8h.html#a2398cf8e7d31f525508cd8c333877025a37c104277f4e3e558ceec07816b1576d">LXW_CONDITIONAL_BAR_AXIS_MIDPOINT</a>, 
<a class="el" href="worksheet_8h.html#a2398cf8e7d31f525508cd8c333877025ac11bb0e69ad383bc8d5be75c5320756d">LXW_CONDITIONAL_BAR_AXIS_NONE</a>
 }</td></tr>
<tr class="memdesc:a2398cf8e7d31f525508cd8c333877025"><td class="mdescLeft">&#160;</td><td class="mdescRight">Conditional format data bar axis options.  <a href="worksheet_8h.html#a2398cf8e7d31f525508cd8c333877025">More...</a><br /></td></tr>
<tr class="separator:a2398cf8e7d31f525508cd8c333877025"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaeb0374167b23080c63eccac2a64840b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840b">lxw_conditional_icon_types</a> { <br />
&#160;&#160;<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840ba2a85edc11a29e1ed4ef360b758c4fa58">LXW_CONDITIONAL_ICONS_3_ARROWS_COLORED</a>, 
<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840ba77987e3dbf3db5affcf27d7795f803f4">LXW_CONDITIONAL_ICONS_3_ARROWS_GRAY</a>, 
<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840ba28d0971bdd685c184a02fdba9d13365a">LXW_CONDITIONAL_ICONS_3_FLAGS</a>, 
<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840ba24f085582f0fe3e87f99686d090c45ca">LXW_CONDITIONAL_ICONS_3_TRAFFIC_LIGHTS_UNRIMMED</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840baa77f39bba5103bee55b112ae958b8fed">LXW_CONDITIONAL_ICONS_3_TRAFFIC_LIGHTS_RIMMED</a>, 
<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840ba455ff03a2d12d85ddf5fc8572ee151d0">LXW_CONDITIONAL_ICONS_3_SIGNS</a>, 
<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840ba8baa0f98d3771c07f83fc4d10a6db870">LXW_CONDITIONAL_ICONS_3_SYMBOLS_CIRCLED</a>, 
<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840bac4d4e7e8cda8578ad851c2086c233fe1">LXW_CONDITIONAL_ICONS_3_SYMBOLS_UNCIRCLED</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840ba0f081e87021b94c85c5f513bee20cefc">LXW_CONDITIONAL_ICONS_4_ARROWS_COLORED</a>, 
<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840ba31dcd78a47ab9c51a775d424ff125b75">LXW_CONDITIONAL_ICONS_4_ARROWS_GRAY</a>, 
<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840ba780b3f28f5c9b6a51c3da515bc09d698">LXW_CONDITIONAL_ICONS_4_RED_TO_BLACK</a>, 
<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840bab814d3cdca3479db41dec59ccf3659c4">LXW_CONDITIONAL_ICONS_4_RATINGS</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840bac49a620b3ce04826bb4bfe1faa8cb20b">LXW_CONDITIONAL_ICONS_4_TRAFFIC_LIGHTS</a>, 
<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840ba20cf7c4a18ecd5aa81b5f1e3887d3c3f">LXW_CONDITIONAL_ICONS_5_ARROWS_COLORED</a>, 
<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840ba88cd70a2ecb36a92e5f0c96c8e2bab71">LXW_CONDITIONAL_ICONS_5_ARROWS_GRAY</a>, 
<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840baf492caa7c54d3c2303666083bba40662">LXW_CONDITIONAL_ICONS_5_RATINGS</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840ba31f0fe48d54fa205abfa0a7d88ca102d">LXW_CONDITIONAL_ICONS_5_QUARTERS</a>
<br />
 }</td></tr>
<tr class="memdesc:aaeb0374167b23080c63eccac2a64840b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Icon types used in the <a class="el" href="structlxw__conditional__format.html" title="Worksheet conditional formatting options.">lxw_conditional_format</a> icon_style field.  <a href="worksheet_8h.html#aaeb0374167b23080c63eccac2a64840b">More...</a><br /></td></tr>
<tr class="separator:aaeb0374167b23080c63eccac2a64840b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a915c52f231594642bad90422c5b2cf81"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a915c52f231594642bad90422c5b2cf81">lxw_object_position</a> { <br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a915c52f231594642bad90422c5b2cf81a9241d2348b2f692d3973d89f46a848a9">LXW_OBJECT_POSITION_DEFAULT</a>, 
<a class="el" href="worksheet_8h.html#a915c52f231594642bad90422c5b2cf81a3a7fd9f3ceaa180ddba415b8b7d80f68">LXW_OBJECT_MOVE_AND_SIZE</a>, 
<a class="el" href="worksheet_8h.html#a915c52f231594642bad90422c5b2cf81ae8e56c6314407205b48e9e8085926182">LXW_OBJECT_MOVE_DONT_SIZE</a>, 
<a class="el" href="worksheet_8h.html#a915c52f231594642bad90422c5b2cf81a2ce8ef5e158013c4872d312fb6b2e1a4">LXW_OBJECT_DONT_MOVE_DONT_SIZE</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a915c52f231594642bad90422c5b2cf81a833c0825a5e212ad263a20346d972a93">LXW_OBJECT_MOVE_AND_SIZE_AFTER</a>
<br />
 }</td></tr>
<tr class="separator:a915c52f231594642bad90422c5b2cf81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d5ed222f464ed30865534f04bd85b22"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22">lxw_ignore_errors</a> { <br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22add1e6023e41e40f36e290f0b3514460b">LXW_IGNORE_NUMBER_STORED_AS_TEXT</a> = 1, 
<a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22ae8cd84ea345808631d6c5a33c0218d5a">LXW_IGNORE_EVAL_ERROR</a>, 
<a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22a61bb58652f573e3643b911dde3d17c12">LXW_IGNORE_FORMULA_DIFFERS</a>, 
<a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22a476dc8ef5536270c27645ab2a88e2717">LXW_IGNORE_FORMULA_RANGE</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22accf664e190a32d5ea8faa08f36662d1d">LXW_IGNORE_FORMULA_UNLOCKED</a>, 
<a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22a8e96b5ae88901743ee89658ba2fc9510">LXW_IGNORE_EMPTY_CELL_REFERENCE</a>, 
<a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22a8d8482fcf797787cb0aef15eda546dc1">LXW_IGNORE_LIST_DATA_VALIDATION</a>, 
<a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22a39f33893037a8f1b6eac268b894cdcec">LXW_IGNORE_CALCULATED_COLUMN</a>, 
<br />
&#160;&#160;<a class="el" href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22ac41cb6a61704e4bf0b7e874febdab240">LXW_IGNORE_TWO_DIGIT_TEXT_YEAR</a>
<br />
 }</td></tr>
<tr class="separator:a8d5ed222f464ed30865534f04bd85b22"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a3df7073ab35462516525d28975286994"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a3df7073ab35462516525d28975286994">LXW_DEF_COL_WIDTH</a>&#160;&#160;&#160;(double)8.43</td></tr>
<tr class="separator:a3df7073ab35462516525d28975286994"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8901b9706d1c48c28c97e95b452a927a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a>&#160;&#160;&#160;(double)15.0</td></tr>
<tr class="separator:a8901b9706d1c48c28c97e95b452a927a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<div class="ttc" id="aworksheet_8h_html_a4e2b1de34e96331000a996f512aecfcf"><div class="ttname"><a href="worksheet_8h.html#a4e2b1de34e96331000a996f512aecfcf">worksheet_autofilter</a></div><div class="ttdeci">lxw_error worksheet_autofilter(lxw_worksheet *worksheet, lxw_row_t first_row, lxw_col_t first_col, lxw_row_t last_row, lxw_col_t last_col)</div><div class="ttdoc">Set the autofilter area in the worksheet.</div></div>
<div class="ttc" id="aworksheet_8h_html_a00621cf25b5a449a92bb9b3fc83327e6"><div class="ttname"><a href="worksheet_8h.html#a00621cf25b5a449a92bb9b3fc83327e6">worksheet_set_v_pagebreaks</a></div><div class="ttdeci">lxw_error worksheet_set_v_pagebreaks(lxw_worksheet *worksheet, lxw_col_t breaks[])</div><div class="ttdoc">Set the vertical page breaks on a worksheet.</div></div>
<div class="ttc" id="aworksheet_8h_html_a0b02d53154397cd4024e8ec2a95e2d89"><div class="ttname"><a href="worksheet_8h.html#a0b02d53154397cd4024e8ec2a95e2d89">worksheet_hide_zero</a></div><div class="ttdeci">void worksheet_hide_zero(lxw_worksheet *worksheet)</div><div class="ttdoc">Hide zero values in worksheet cells.</div></div>
<div class="ttc" id="astructlxw__row__col__options_html"><div class="ttname"><a href="structlxw__row__col__options.html">lxw_row_col_options</a></div><div class="ttdoc">Options for rows and columns.</div><div class="ttdef"><b>Definition:</b> worksheet.h:716</div></div>
<div class="ttc" id="aworksheet_8h_html_a74121de7c4f67639b30f302d4af48eb4"><div class="ttname"><a href="worksheet_8h.html#a74121de7c4f67639b30f302d4af48eb4">worksheet_set_default_row</a></div><div class="ttdeci">void worksheet_set_default_row(lxw_worksheet *worksheet, double height, uint8_t hide_unused_rows)</div><div class="ttdoc">Set the default row properties.</div></div>
<div class="ttc" id="aworkbook_8h_html_ad9e7aeebc0fd43562db5bcd527b2ee5e"><div class="ttname"><a href="workbook_8h.html#ad9e7aeebc0fd43562db5bcd527b2ee5e">workbook_close</a></div><div class="ttdeci">lxw_error workbook_close(lxw_workbook *workbook)</div><div class="ttdoc">Close the Workbook object and write the XLSX file.</div></div>
<div class="ttc" id="astructlxw__data__validation_html_a7d648cb7da5e14cb1ba1c446cd91f93f"><div class="ttname"><a href="structlxw__data__validation.html#a7d648cb7da5e14cb1ba1c446cd91f93f">lxw_data_validation::criteria</a></div><div class="ttdeci">uint8_t criteria</div><div class="ttdef"><b>Definition:</b> worksheet.h:807</div></div>
<div class="ttc" id="astructlxw__rich__string__tuple_html"><div class="ttname"><a href="structlxw__rich__string__tuple.html">lxw_rich_string_tuple</a></div><div class="ttdoc">Struct to represent a rich string format/string pair.</div><div class="ttdef"><b>Definition:</b> worksheet.h:1586</div></div>
<div class="ttc" id="aworksheet_8h_html_a40d32d247593e01c00b5c5c606fb4bb3"><div class="ttname"><a href="worksheet_8h.html#a40d32d247593e01c00b5c5c606fb4bb3">worksheet_print_across</a></div><div class="ttdeci">void worksheet_print_across(lxw_worksheet *worksheet)</div><div class="ttdoc">Set the order in which pages are printed.</div></div>
<div class="ttc" id="aworksheet_8h_html_a8df6c0ce82172dafdd3e81923978bd4b"><div class="ttname"><a href="worksheet_8h.html#a8df6c0ce82172dafdd3e81923978bd4b">worksheet_set_vba_name</a></div><div class="ttdeci">lxw_error worksheet_set_vba_name(lxw_worksheet *worksheet, const char *name)</div><div class="ttdoc">Set the VBA name for the worksheet.</div></div>
<div class="ttc" id="astructlxw__chart__options_html"><div class="ttname"><a href="structlxw__chart__options.html">lxw_chart_options</a></div><div class="ttdoc">Options for inserted charts.</div><div class="ttdef"><b>Definition:</b> worksheet.h:1301</div></div>
<div class="ttc" id="astructlxw__header__footer__options_html_a0cd0badf4c6c3dde9aa46e924276a9aa"><div class="ttname"><a href="structlxw__header__footer__options.html#a0cd0badf4c6c3dde9aa46e924276a9aa">lxw_header_footer_options::margin</a></div><div class="ttdeci">double margin</div><div class="ttdef"><b>Definition:</b> worksheet.h:1477</div></div>
<div class="ttc" id="aworksheet_8h_html_a8331799b5821d70c442d637ca66dd6e7"><div class="ttname"><a href="worksheet_8h.html#a8331799b5821d70c442d637ca66dd6e7">worksheet_write_array_formula</a></div><div class="ttdeci">lxw_error worksheet_write_array_formula(lxw_worksheet *worksheet, lxw_row_t first_row, lxw_col_t first_col, lxw_row_t last_row, lxw_col_t last_col, const char *formula, lxw_format *format)</div><div class="ttdoc">Write an array formula to a worksheet cell.</div></div>
<div class="ttc" id="astructlxw__protection_html"><div class="ttname"><a href="structlxw__protection.html">lxw_protection</a></div><div class="ttdoc">Worksheet protection options.</div><div class="ttdef"><b>Definition:</b> worksheet.h:1499</div></div>
<div class="ttc" id="aformat_8h_html_a19cbd7c34692eb7fb35a7411432d836e"><div class="ttname"><a href="format_8h.html#a19cbd7c34692eb7fb35a7411432d836e">format_set_italic</a></div><div class="ttdeci">void format_set_italic(lxw_format *format)</div><div class="ttdoc">Turn on italic for the format font.</div></div>
<div class="ttc" id="aformat_8h_html_a4d5e924b1acd9571fd5e0fe2615e9f8fafee0fd8f4ad9a64420efae0004448911"><div class="ttname"><a href="format_8h.html#a4d5e924b1acd9571fd5e0fe2615e9f8fafee0fd8f4ad9a64420efae0004448911">LXW_BORDER_DOUBLE</a></div><div class="ttdeci">@ LXW_BORDER_DOUBLE</div><div class="ttdef"><b>Definition:</b> format.h:310</div></div>
<div class="ttc" id="astructlxw__comment__options_html"><div class="ttname"><a href="structlxw__comment__options.html">lxw_comment_options</a></div><div class="ttdoc">Options for inserted comments.</div><div class="ttdef"><b>Definition:</b> worksheet.h:1360</div></div>
<div class="ttc" id="astructlxw__image__options_html_a0c023a71168ff25274cfe41ac5403a99"><div class="ttname"><a href="structlxw__image__options.html#a0c023a71168ff25274cfe41ac5403a99">lxw_image_options::url</a></div><div class="ttdeci">char * url</div><div class="ttdef"><b>Definition:</b> worksheet.h:1288</div></div>
<div class="ttc" id="aformat_8h_html_adeeb0d70c7c873422d642323e7e1ecf5ae0a52569d3110521d3e9341809336063"><div class="ttname"><a href="format_8h.html#adeeb0d70c7c873422d642323e7e1ecf5ae0a52569d3110521d3e9341809336063">LXW_ALIGN_VERTICAL_CENTER</a></div><div class="ttdeci">@ LXW_ALIGN_VERTICAL_CENTER</div><div class="ttdef"><b>Definition:</b> format.h:153</div></div>
<div class="ttc" id="aworksheet_8h_html_ae57117f04c82bef29805ec3eabc219bb"><div class="ttname"><a href="worksheet_8h.html#ae57117f04c82bef29805ec3eabc219bb">worksheet_write_formula</a></div><div class="ttdeci">lxw_error worksheet_write_formula(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, const char *formula, lxw_format *format)</div><div class="ttdoc">Write a formula to a worksheet cell.</div></div>
<div class="ttc" id="acommon_8h_html_a57bffaf0ff3cb4e9f4f7f2b0b6dad349a847f574cc183a1d8a4e3800fe28091f4"><div class="ttname"><a href="common_8h.html#a57bffaf0ff3cb4e9f4f7f2b0b6dad349a847f574cc183a1d8a4e3800fe28091f4">LXW_FALSE</a></div><div class="ttdeci">@ LXW_FALSE</div><div class="ttdef"><b>Definition:</b> common.h:51</div></div>
<div class="ttc" id="astructlxw__data__validation_html"><div class="ttname"><a href="structlxw__data__validation.html">lxw_data_validation</a></div><div class="ttdoc">Worksheet data validation options.</div><div class="ttdef"><b>Definition:</b> worksheet.h:796</div></div>
<div class="ttc" id="aformat_8h_html_a189c83d1f21b01937f1f730720c33d13"><div class="ttname"><a href="format_8h.html#a189c83d1f21b01937f1f730720c33d13">format_set_align</a></div><div class="ttdeci">void format_set_align(lxw_format *format, uint8_t alignment)</div><div class="ttdoc">Set the alignment for data in the cell.</div></div>
<div class="ttc" id="achart_8h_html_ad60de0eb056e93435407e91482115f55"><div class="ttname"><a href="chart_8h.html#ad60de0eb056e93435407e91482115f55">chart_add_series</a></div><div class="ttdeci">lxw_chart_series * chart_add_series(lxw_chart *chart, const char *categories, const char *values)</div><div class="ttdoc">Add a data series to a chart.</div></div>
<div class="ttc" id="aworksheet_8h_html_a8901b9706d1c48c28c97e95b452a927a"><div class="ttname"><a href="worksheet_8h.html#a8901b9706d1c48c28c97e95b452a927a">LXW_DEF_ROW_HEIGHT</a></div><div class="ttdeci">#define LXW_DEF_ROW_HEIGHT</div><div class="ttdef"><b>Definition:</b> worksheet.h:76</div></div>
<div class="ttc" id="aworkbook_8h_html_a1cf96608a23ee4eb0e8467c15240d00b"><div class="ttname"><a href="workbook_8h.html#a1cf96608a23ee4eb0e8467c15240d00b">workbook_new</a></div><div class="ttdeci">lxw_workbook * workbook_new(const char *filename)</div><div class="ttdoc">Create a new workbook object.</div></div>
<div class="ttc" id="aworksheet_8h_html_ab92116759b56cd67419febf6e0aa2c9e"><div class="ttname"><a href="worksheet_8h.html#ab92116759b56cd67419febf6e0aa2c9e">worksheet_print_area</a></div><div class="ttdeci">lxw_error worksheet_print_area(lxw_worksheet *worksheet, lxw_row_t first_row, lxw_col_t first_col, lxw_row_t last_row, lxw_col_t last_col)</div><div class="ttdoc">Set the print area for a worksheet.</div></div>
<div class="ttc" id="aworksheet_8h_html_a8d5ed222f464ed30865534f04bd85b22add1e6023e41e40f36e290f0b3514460b"><div class="ttname"><a href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22add1e6023e41e40f36e290f0b3514460b">LXW_IGNORE_NUMBER_STORED_AS_TEXT</a></div><div class="ttdeci">@ LXW_IGNORE_NUMBER_STORED_AS_TEXT</div><div class="ttdef"><b>Definition:</b> worksheet.h:558</div></div>
<div class="ttc" id="aworksheet_8h_html_a47b554f3a8f1475b57df705fd326ae6bad288ab1847d59fa1183555c5a82c4d11"><div class="ttname"><a href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6bad288ab1847d59fa1183555c5a82c4d11">LXW_CONDITIONAL_CRITERIA_GREATER_THAN_OR_EQUAL_TO</a></div><div class="ttdeci">@ LXW_CONDITIONAL_CRITERIA_GREATER_THAN_OR_EQUAL_TO</div><div class="ttdef"><b>Definition:</b> worksheet.h:314</div></div>
<div class="ttc" id="aworksheet_8h_html_abbc2de45e0aa84341fb10a98778b3807"><div class="ttname"><a href="worksheet_8h.html#abbc2de45e0aa84341fb10a98778b3807">worksheet_set_row_opt</a></div><div class="ttdeci">lxw_error worksheet_set_row_opt(lxw_worksheet *worksheet, lxw_row_t row, double height, lxw_format *format, lxw_row_col_options *options)</div><div class="ttdoc">Set the properties for a row of cells.</div></div>
<div class="ttc" id="aworksheet_8h_html_abd9af70f706b738690ebb9103940b0e1"><div class="ttname"><a href="worksheet_8h.html#abd9af70f706b738690ebb9103940b0e1">worksheet_gridlines</a></div><div class="ttdeci">void worksheet_gridlines(lxw_worksheet *worksheet, uint8_t option)</div><div class="ttdoc">Set the option to display or hide gridlines on the screen and the printed page.</div></div>
<div class="ttc" id="aworksheet_8h_html_a62368aa313184d72a9ca2b1cf5de9a8a"><div class="ttname"><a href="worksheet_8h.html#a62368aa313184d72a9ca2b1cf5de9a8a">worksheet_set_selection</a></div><div class="ttdeci">void worksheet_set_selection(lxw_worksheet *worksheet, lxw_row_t first_row, lxw_col_t first_col, lxw_row_t last_row, lxw_col_t last_col)</div><div class="ttdoc">Set the selected cell or cells in a worksheet:</div></div>
<div class="ttc" id="aworksheet_8h_html_a9b2ac96ee23574a432f5703eedcaf9a1"><div class="ttname"><a href="worksheet_8h.html#a9b2ac96ee23574a432f5703eedcaf9a1">worksheet_write_url</a></div><div class="ttdeci">lxw_error worksheet_write_url(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, const char *url, lxw_format *format)</div></div>
<div class="ttc" id="aformat_8h_html_a9cf7a28a6e8014cb98dff27415e2b1ca"><div class="ttname"><a href="format_8h.html#a9cf7a28a6e8014cb98dff27415e2b1ca">format_set_border</a></div><div class="ttdeci">void format_set_border(lxw_format *format, uint8_t style)</div><div class="ttdoc">Set the cell border style.</div></div>
<div class="ttc" id="astructlxw__rich__string__tuple_html_a331030005bc187f49a855a7ccb749052"><div class="ttname"><a href="structlxw__rich__string__tuple.html#a331030005bc187f49a855a7ccb749052">lxw_rich_string_tuple::format</a></div><div class="ttdeci">lxw_format * format</div><div class="ttdef"><b>Definition:</b> worksheet.h:1590</div></div>
<div class="ttc" id="aworksheet_8h_html_a26130cfccecf80a9833d65a84039374d"><div class="ttname"><a href="worksheet_8h.html#a26130cfccecf80a9833d65a84039374d">worksheet_set_print_scale</a></div><div class="ttdeci">void worksheet_set_print_scale(lxw_worksheet *worksheet, uint16_t scale)</div><div class="ttdoc">Set the scale factor for the printed page.</div></div>
<div class="ttc" id="aformat_8h_html_a85e1b0baf44b445b65894e48722aec14"><div class="ttname"><a href="format_8h.html#a85e1b0baf44b445b65894e48722aec14">format_set_bold</a></div><div class="ttdeci">void format_set_bold(lxw_format *format)</div><div class="ttdoc">Turn on bold for the format font.</div></div>
<div class="ttc" id="astructlxw__comment__options_html_a85ea5b7a9deceb6b5dd9b1580b49b5a5"><div class="ttname"><a href="structlxw__comment__options.html#a85ea5b7a9deceb6b5dd9b1580b49b5a5">lxw_comment_options::x_offset</a></div><div class="ttdeci">int32_t x_offset</div><div class="ttdef"><b>Definition:</b> worksheet.h:1427</div></div>
<div class="ttc" id="aworksheet_8h_html_a38e16dc0a2e75d7ec99dca21fbeec89b"><div class="ttname"><a href="worksheet_8h.html#a38e16dc0a2e75d7ec99dca21fbeec89b">worksheet_set_zoom</a></div><div class="ttdeci">void worksheet_set_zoom(lxw_worksheet *worksheet, uint16_t scale)</div><div class="ttdoc">Set the worksheet zoom factor.</div></div>
<div class="ttc" id="aformat_8h_html_af77bbd0003344cb16d455c7fb709e16c"><div class="ttname"><a href="format_8h.html#af77bbd0003344cb16d455c7fb709e16c">format_set_num_format</a></div><div class="ttdeci">void format_set_num_format(lxw_format *format, const char *num_format)</div><div class="ttdoc">Set the number format for a cell.</div></div>
<div class="ttc" id="aworksheet_8h_html_a817235e5ce7b1ea030bedd86ddbb9844"><div class="ttname"><a href="worksheet_8h.html#a817235e5ce7b1ea030bedd86ddbb9844">worksheet_set_start_page</a></div><div class="ttdeci">void worksheet_set_start_page(lxw_worksheet *worksheet, uint16_t start_page)</div><div class="ttdoc">Set the start page number when printing.</div></div>
<div class="ttc" id="aworksheet_8h_html_a4529d77bcefcf478b8209f46fe730f6f"><div class="ttname"><a href="worksheet_8h.html#a4529d77bcefcf478b8209f46fe730f6f">worksheet_insert_image</a></div><div class="ttdeci">lxw_error worksheet_insert_image(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, const char *filename)</div><div class="ttdoc">Insert an image in a worksheet cell.</div></div>
<div class="ttc" id="astructlxw__data__validation_html_acc19c667d02e2e5e917216bc077b2ade"><div class="ttname"><a href="structlxw__data__validation.html#acc19c667d02e2e5e917216bc077b2ade">lxw_data_validation::minimum_number</a></div><div class="ttdeci">double minimum_number</div><div class="ttdef"><b>Definition:</b> worksheet.h:889</div></div>
<div class="ttc" id="achart_8h_html_a9f577b0fcabe6cac9118a26a483fe85caf309b18af571c90d3ae052e769d30e6c"><div class="ttname"><a href="chart_8h.html#a9f577b0fcabe6cac9118a26a483fe85caf309b18af571c90d3ae052e769d30e6c">LXW_CHART_LINE</a></div><div class="ttdeci">@ LXW_CHART_LINE</div><div class="ttdef"><b>Definition:</b> chart.h:125</div></div>
<div class="ttc" id="aworksheet_8h_html_ab942bbc0493eaa5cf5696da30b6f872d"><div class="ttname"><a href="worksheet_8h.html#ab942bbc0493eaa5cf5696da30b6f872d">worksheet_set_margins</a></div><div class="ttdeci">void worksheet_set_margins(lxw_worksheet *worksheet, double left, double right, double top, double bottom)</div><div class="ttdoc">Set the worksheet margins for the printed page.</div></div>
<div class="ttc" id="astructlxw__worksheet_html"><div class="ttname"><a href="structlxw__worksheet.html">lxw_worksheet</a></div><div class="ttdoc">Struct to represent an Excel worksheet.</div><div class="ttdef"><b>Definition:</b> worksheet.h:1603</div></div>
<div class="ttc" id="aworksheet_8h_html_a180fcbcf012b5c165a01490d1128dc11"><div class="ttname"><a href="worksheet_8h.html#a180fcbcf012b5c165a01490d1128dc11">worksheet_hide</a></div><div class="ttdeci">void worksheet_hide(lxw_worksheet *worksheet)</div><div class="ttdoc">Hide the current worksheet.</div></div>
<div class="ttc" id="aworksheet_8h_html_ad24e2a01fccb881e4cc478a92aa095e6"><div class="ttname"><a href="worksheet_8h.html#ad24e2a01fccb881e4cc478a92aa095e6">worksheet_set_landscape</a></div><div class="ttdeci">void worksheet_set_landscape(lxw_worksheet *worksheet)</div><div class="ttdoc">Set the page orientation as landscape.</div></div>
<div class="ttc" id="astructlxw__data__validation_html_abc1601dcfcd8e7d7172984fb34e14626"><div class="ttname"><a href="structlxw__data__validation.html#abc1601dcfcd8e7d7172984fb34e14626">lxw_data_validation::maximum_number</a></div><div class="ttdeci">double maximum_number</div><div class="ttdef"><b>Definition:</b> worksheet.h:907</div></div>
<div class="ttc" id="aworkbook_8h_html_abd18b07856137e94b34c9aca7e0831b5"><div class="ttname"><a href="workbook_8h.html#abd18b07856137e94b34c9aca7e0831b5">workbook_get_default_url_format</a></div><div class="ttdeci">lxw_format * workbook_get_default_url_format(lxw_workbook *workbook)</div><div class="ttdoc">Get the default URL format used with worksheet_write_url().</div></div>
<div class="ttc" id="aworksheet_8h_html_a8d5ed222f464ed30865534f04bd85b22ae8cd84ea345808631d6c5a33c0218d5a"><div class="ttname"><a href="worksheet_8h.html#a8d5ed222f464ed30865534f04bd85b22ae8cd84ea345808631d6c5a33c0218d5a">LXW_IGNORE_EVAL_ERROR</a></div><div class="ttdeci">@ LXW_IGNORE_EVAL_ERROR</div><div class="ttdef"><b>Definition:</b> worksheet.h:562</div></div>
<div class="ttc" id="astructlxw__format_html"><div class="ttname"><a href="structlxw__format.html">lxw_format</a></div><div class="ttdoc">Struct to represent the formatting properties of an Excel format.</div><div class="ttdef"><b>Definition:</b> format.h:358</div></div>
<div class="ttc" id="aworksheet_8h_html_a9601745a2e9e7b1e194b7f5283f197f0"><div class="ttname"><a href="worksheet_8h.html#a9601745a2e9e7b1e194b7f5283f197f0">worksheet_set_h_pagebreaks</a></div><div class="ttdeci">lxw_error worksheet_set_h_pagebreaks(lxw_worksheet *worksheet, lxw_row_t breaks[])</div><div class="ttdoc">Set the horizontal page breaks on a worksheet.</div></div>
<div class="ttc" id="autility_8h_html_a4dbbdfc9b616195c799dee78e727cecc"><div class="ttname"><a href="utility_8h.html#a4dbbdfc9b616195c799dee78e727cecc">RANGE</a></div><div class="ttdeci">#define RANGE(range)</div><div class="ttdoc">Convert an Excel A1:B2 range into a (first_row, first_col, last_row, last_col) sequence.</div><div class="ttdef"><b>Definition:</b> utility.h:82</div></div>
<div class="ttc" id="acommon_8h_html_a57bffaf0ff3cb4e9f4f7f2b0b6dad349a7850bcc34c18efe2e45372f4069be0bf"><div class="ttname"><a href="common_8h.html#a57bffaf0ff3cb4e9f4f7f2b0b6dad349a7850bcc34c18efe2e45372f4069be0bf">LXW_TRUE</a></div><div class="ttdeci">@ LXW_TRUE</div><div class="ttdef"><b>Definition:</b> common.h:53</div></div>
<div class="ttc" id="aworksheet_8h_html_a1b49e135d4debcdb25941f2f40f04cb0"><div class="ttname"><a href="worksheet_8h.html#a1b49e135d4debcdb25941f2f40f04cb0">worksheet_protect</a></div><div class="ttdeci">void worksheet_protect(lxw_worksheet *worksheet, const char *password, lxw_protection *options)</div><div class="ttdoc">Protect elements of a worksheet from modification.</div></div>
<div class="ttc" id="aworksheet_8h_html_afb0b3211160927a3412be28c9364b1b5"><div class="ttname"><a href="worksheet_8h.html#afb0b3211160927a3412be28c9364b1b5">worksheet_write_datetime</a></div><div class="ttdeci">lxw_error worksheet_write_datetime(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, lxw_datetime *datetime, lxw_format *format)</div><div class="ttdoc">Write a date or time to a worksheet cell.</div></div>
<div class="ttc" id="aworksheet_8h_html_a171180f46f54aa816c2b3c6c8688ab17"><div class="ttname"><a href="worksheet_8h.html#a171180f46f54aa816c2b3c6c8688ab17">worksheet_conditional_format_cell</a></div><div class="ttdeci">lxw_error worksheet_conditional_format_cell(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, lxw_conditional_format *conditional_format)</div><div class="ttdoc">Add a conditional format to a worksheet cell.</div></div>
<div class="ttc" id="aworksheet_8h_html_ab913a06656ecf28292d6b21d3c3eaaac"><div class="ttname"><a href="worksheet_8h.html#ab913a06656ecf28292d6b21d3c3eaaac">worksheet_set_header_opt</a></div><div class="ttdeci">lxw_error worksheet_set_header_opt(lxw_worksheet *worksheet, const char *string, lxw_header_footer_options *options)</div><div class="ttdoc">Set the printed page header caption with additional options.</div></div>
<div class="ttc" id="aworksheet_8h_html_a487e0bffad0a348421b825d715621c20a3fa67c27394bd03fa6642a501598f70b"><div class="ttname"><a href="worksheet_8h.html#a487e0bffad0a348421b825d715621c20a3fa67c27394bd03fa6642a501598f70b">LXW_HIDE_ALL_GRIDLINES</a></div><div class="ttdeci">@ LXW_HIDE_ALL_GRIDLINES</div><div class="ttdef"><b>Definition:</b> worksheet.h:81</div></div>
<div class="ttc" id="astructlxw__chart_html"><div class="ttname"><a href="structlxw__chart.html">lxw_chart</a></div><div class="ttdoc">Struct to represent an Excel chart.</div><div class="ttdef"><b>Definition:</b> chart.h:1086</div></div>
<div class="ttc" id="aworksheet_8h_html_ac2067faaacb8bfa6550b019e915900a2"><div class="ttname"><a href="worksheet_8h.html#ac2067faaacb8bfa6550b019e915900a2">worksheet_insert_chart</a></div><div class="ttdeci">lxw_error worksheet_insert_chart(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, lxw_chart *chart)</div><div class="ttdoc">Insert a chart object into a worksheet.</div></div>
<div class="ttc" id="autility_8h_html_a189672bfa9c380a28d8db8c40de17fe8"><div class="ttname"><a href="utility_8h.html#a189672bfa9c380a28d8db8c40de17fe8">COLS</a></div><div class="ttdeci">#define COLS(cols)</div><div class="ttdoc">Convert an Excel A:B column range into a (col1, col2) pair.</div><div class="ttdef"><b>Definition:</b> utility.h:63</div></div>
<div class="ttc" id="aformat_8h_html_aeef47436c335daf1801683ac7b3b587d"><div class="ttname"><a href="format_8h.html#aeef47436c335daf1801683ac7b3b587d">format_set_bg_color</a></div><div class="ttdeci">void format_set_bg_color(lxw_format *format, lxw_color_t color)</div><div class="ttdoc">Set the pattern background color for a cell.</div></div>
<div class="ttc" id="astructlxw__image__options_html_a7ef9c6980b8e66bcdfff18627250001c"><div class="ttname"><a href="structlxw__image__options.html#a7ef9c6980b8e66bcdfff18627250001c">lxw_image_options::x_offset</a></div><div class="ttdeci">int32_t x_offset</div><div class="ttdef"><b>Definition:</b> worksheet.h:1267</div></div>
<div class="ttc" id="aworksheet_8h_html_a52c4c145f684c5b4dcd2ed304d1fe907"><div class="ttname"><a href="worksheet_8h.html#a52c4c145f684c5b4dcd2ed304d1fe907">worksheet_set_column_opt</a></div><div class="ttdeci">lxw_error worksheet_set_column_opt(lxw_worksheet *worksheet, lxw_col_t first_col, lxw_col_t last_col, double width, lxw_format *format, lxw_row_col_options *options)</div><div class="ttdoc">Set the properties for one or more columns of cells with options.</div></div>
<div class="ttc" id="aformat_8h_html_adeeb0d70c7c873422d642323e7e1ecf5a9899936ef3a43721b394b9b5d2314496"><div class="ttname"><a href="format_8h.html#adeeb0d70c7c873422d642323e7e1ecf5a9899936ef3a43721b394b9b5d2314496">LXW_ALIGN_CENTER</a></div><div class="ttdeci">@ LXW_ALIGN_CENTER</div><div class="ttdef"><b>Definition:</b> format.h:129</div></div>
<div class="ttc" id="aworksheet_8h_html_aad352c6cf9a5359d4cda51839a91c7d2a3d78b49cb38d25b6d5473a1c0112404d"><div class="ttname"><a href="worksheet_8h.html#aad352c6cf9a5359d4cda51839a91c7d2a3d78b49cb38d25b6d5473a1c0112404d">LXW_COMMENT_DISPLAY_VISIBLE</a></div><div class="ttdeci">@ LXW_COMMENT_DISPLAY_VISIBLE</div><div class="ttdef"><b>Definition:</b> worksheet.h:218</div></div>
<div class="ttc" id="aworksheet_8h_html_aafb945c6f7f462e7c6eb24032ea4e61a"><div class="ttname"><a href="worksheet_8h.html#aafb945c6f7f462e7c6eb24032ea4e61a">worksheet_show_comments</a></div><div class="ttdeci">void worksheet_show_comments(lxw_worksheet *worksheet)</div><div class="ttdoc">Make all comments in the worksheet visible.</div></div>
<div class="ttc" id="aworksheet_8h_html_a4070c24ed5107f33e94f30a1bf865ba9"><div class="ttname"><a href="worksheet_8h.html#a4070c24ed5107f33e94f30a1bf865ba9">worksheet_set_header</a></div><div class="ttdeci">lxw_error worksheet_set_header(lxw_worksheet *worksheet, const char *string)</div><div class="ttdoc">Set the printed page header caption.</div></div>
<div class="ttc" id="astructlxw__row__col__options_html_a0e46063d954292f4018ecb91621b7562"><div class="ttname"><a href="structlxw__row__col__options.html#a0e46063d954292f4018ecb91621b7562">lxw_row_col_options::hidden</a></div><div class="ttdeci">uint8_t hidden</div><div class="ttdef"><b>Definition:</b> worksheet.h:718</div></div>
<div class="ttc" id="aworksheet_8h_html_a6e32eb8e5f17aedb048035a5df337538"><div class="ttname"><a href="worksheet_8h.html#a6e32eb8e5f17aedb048035a5df337538">worksheet_right_to_left</a></div><div class="ttdeci">void worksheet_right_to_left(lxw_worksheet *worksheet)</div><div class="ttdoc">Display the worksheet cells from right to left for some versions of Excel.</div></div>
<div class="ttc" id="aworksheet_8h_html_a463c8d3247f56e0ec191b148355f42f0"><div class="ttname"><a href="worksheet_8h.html#a463c8d3247f56e0ec191b148355f42f0">worksheet_set_first_sheet</a></div><div class="ttdeci">void worksheet_set_first_sheet(lxw_worksheet *worksheet)</div><div class="ttdoc">Set current worksheet as the first visible sheet tab.</div></div>
<div class="ttc" id="aworksheet_8h_html_a78bfe3a786149deca69248db57da182f"><div class="ttname"><a href="worksheet_8h.html#a78bfe3a786149deca69248db57da182f">worksheet_select</a></div><div class="ttdeci">void worksheet_select(lxw_worksheet *worksheet)</div><div class="ttdoc">Set a worksheet tab as selected.</div></div>
<div class="ttc" id="aformat_8h_html_af530d7971d15c164f3fb6bbfede9a39fa76d5bdd1c57c126df937f0b003597e18"><div class="ttname"><a href="format_8h.html#af530d7971d15c164f3fb6bbfede9a39fa76d5bdd1c57c126df937f0b003597e18">LXW_UNDERLINE_SINGLE</a></div><div class="ttdeci">@ LXW_UNDERLINE_SINGLE</div><div class="ttdef"><b>Definition:</b> format.h:98</div></div>
<div class="ttc" id="astructlxw__datetime_html"><div class="ttname"><a href="structlxw__datetime.html">lxw_datetime</a></div><div class="ttdoc">Struct to represent a date and time in Excel.</div><div class="ttdef"><b>Definition:</b> common.h:152</div></div>
<div class="ttc" id="astructlxw__image__options_html"><div class="ttname"><a href="structlxw__image__options.html">lxw_image_options</a></div><div class="ttdoc">Options for inserted images.</div><div class="ttdef"><b>Definition:</b> worksheet.h:1264</div></div>
<div class="ttc" id="aworksheet_8h_html_affdc3f401f3ee241fad5d651628ac92dac9180feb375f5d9302d80467398a0c6e"><div class="ttname"><a href="worksheet_8h.html#affdc3f401f3ee241fad5d651628ac92dac9180feb375f5d9302d80467398a0c6e">LXW_CONDITIONAL_TYPE_CELL</a></div><div class="ttdeci">@ LXW_CONDITIONAL_TYPE_CELL</div><div class="ttdef"><b>Definition:</b> worksheet.h:231</div></div>
<div class="ttc" id="aworksheet_8h_html_a158dadac385cd1007994e5478b7b2aa7"><div class="ttname"><a href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a></div><div class="ttdeci">lxw_error worksheet_write_comment_opt(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, const char *string, lxw_comment_options *options)</div><div class="ttdoc">Write a comment to a worksheet cell with options.</div></div>
<div class="ttc" id="aformat_8h_html_abeafc6e8222ba9fcfd4f2c2f4e9ea38bae0b5c39ced3b8c871974f0e4917e4871"><div class="ttname"><a href="format_8h.html#abeafc6e8222ba9fcfd4f2c2f4e9ea38bae0b5c39ced3b8c871974f0e4917e4871">LXW_COLOR_GREEN</a></div><div class="ttdeci">@ LXW_COLOR_GREEN</div><div class="ttdef"><b>Definition:</b> format.h:196</div></div>
<div class="ttc" id="aworksheet_8h_html_af474c01f7ec8ac1a01206c9c4a5867af"><div class="ttname"><a href="worksheet_8h.html#af474c01f7ec8ac1a01206c9c4a5867af">worksheet_write_formula_num</a></div><div class="ttdeci">lxw_error worksheet_write_formula_num(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, const char *formula, lxw_format *format, double result)</div><div class="ttdoc">Write a formula to a worksheet cell with a user defined numeric result.</div></div>
<div class="ttc" id="aworksheet_8h_html_af196b0cb611f3abc800f3439f3bb8942"><div class="ttname"><a href="worksheet_8h.html#af196b0cb611f3abc800f3439f3bb8942">worksheet_set_comments_author</a></div><div class="ttdeci">void worksheet_set_comments_author(lxw_worksheet *worksheet, const char *author)</div><div class="ttdoc">Set the default author of the cell comments.</div></div>
<div class="ttc" id="aworksheet_8h_html_a5d442a52a3549d5d2324f13787b66f47"><div class="ttname"><a href="worksheet_8h.html#a5d442a52a3549d5d2324f13787b66f47">worksheet_set_page_view</a></div><div class="ttdeci">void worksheet_set_page_view(lxw_worksheet *worksheet)</div><div class="ttdoc">Set the page layout to page view mode.</div></div>
<div class="ttc" id="aworksheet_8h_html_a20e0dbd70400f2eb7c5d88696f812b4ca0952e8f509c60eca7015ac69ed47b4e5"><div class="ttname"><a href="worksheet_8h.html#a20e0dbd70400f2eb7c5d88696f812b4ca0952e8f509c60eca7015ac69ed47b4e5">LXW_VALIDATION_TYPE_INTEGER</a></div><div class="ttdeci">@ LXW_VALIDATION_TYPE_INTEGER</div><div class="ttdef"><b>Definition:</b> worksheet.h:110</div></div>
<div class="ttc" id="aworksheet_8h_html_a932dd78e18c8e82a21f87e5344aa9c65"><div class="ttname"><a href="worksheet_8h.html#a932dd78e18c8e82a21f87e5344aa9c65">worksheet_repeat_columns</a></div><div class="ttdeci">lxw_error worksheet_repeat_columns(lxw_worksheet *worksheet, lxw_col_t first_col, lxw_col_t last_col)</div><div class="ttdoc">Set the number of columns to repeat at the top of each printed page.</div></div>
<div class="ttc" id="astructlxw__data__validation_html_a4495d388fd38d3824db6d8b7af3cdecc"><div class="ttname"><a href="structlxw__data__validation.html#a4495d388fd38d3824db6d8b7af3cdecc">lxw_data_validation::validate</a></div><div class="ttdeci">uint8_t validate</div><div class="ttdef"><b>Definition:</b> worksheet.h:801</div></div>
<div class="ttc" id="aworksheet_8h_html_a9efae5027e762c9a29f6afa547e4b2db"><div class="ttname"><a href="worksheet_8h.html#a9efae5027e762c9a29f6afa547e4b2db">worksheet_outline_settings</a></div><div class="ttdeci">void worksheet_outline_settings(lxw_worksheet *worksheet, uint8_t visible, uint8_t symbols_below, uint8_t symbols_right, uint8_t auto_style)</div><div class="ttdoc">Set the Outline and Grouping display properties.</div></div>
<div class="ttc" id="aworksheet_8h_html_a9f8af12017797b10c5ee68e04149032f"><div class="ttname"><a href="worksheet_8h.html#a9f8af12017797b10c5ee68e04149032f">worksheet_set_paper</a></div><div class="ttdeci">void worksheet_set_paper(lxw_worksheet *worksheet, uint8_t paper_type)</div><div class="ttdoc">Set the paper type for printing.</div></div>
<div class="ttc" id="astructlxw__workbook_html"><div class="ttname"><a href="structlxw__workbook.html">lxw_workbook</a></div><div class="ttdoc">Struct to represent an Excel workbook.</div><div class="ttdef"><b>Definition:</b> workbook.h:273</div></div>
<div class="ttc" id="acommon_8h_html_aaf33b4e2179dcc466359277210774ce3"><div class="ttname"><a href="common_8h.html#aaf33b4e2179dcc466359277210774ce3">lxw_row_t</a></div><div class="ttdeci">uint32_t lxw_row_t</div><div class="ttdef"><b>Definition:</b> common.h:40</div></div>
<div class="ttc" id="aworksheet_8h_html_a4e8ea2614bc214fa0cc8992733c51f5f"><div class="ttname"><a href="worksheet_8h.html#a4e8ea2614bc214fa0cc8992733c51f5f">worksheet_insert_chart_opt</a></div><div class="ttdeci">lxw_error worksheet_insert_chart_opt(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, lxw_chart *chart, lxw_chart_options *user_options)</div><div class="ttdoc">Insert a chart object into a worksheet, with options.</div></div>
<div class="ttc" id="aworksheet_8h_html_a8c81b7e398d686a1fe17e76ef4485f34"><div class="ttname"><a href="worksheet_8h.html#a8c81b7e398d686a1fe17e76ef4485f34">worksheet_write_blank</a></div><div class="ttdeci">lxw_error worksheet_write_blank(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, lxw_format *format)</div><div class="ttdoc">Write a formatted blank worksheet cell.</div></div>
<div class="ttc" id="aworksheet_8h_html_af14fc7b20ba84e56510caf15c577cf8c"><div class="ttname"><a href="worksheet_8h.html#af14fc7b20ba84e56510caf15c577cf8c">worksheet_write_boolean</a></div><div class="ttdeci">lxw_error worksheet_write_boolean(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, int value, lxw_format *format)</div><div class="ttdoc">Write a formatted boolean worksheet cell.</div></div>
<div class="ttc" id="aworksheet_8h_html_a76ec76f91328c512d3d86a35642f0a08"><div class="ttname"><a href="worksheet_8h.html#a76ec76f91328c512d3d86a35642f0a08">worksheet_activate</a></div><div class="ttdeci">void worksheet_activate(lxw_worksheet *worksheet)</div><div class="ttdoc">Make a worksheet the active, i.e., visible worksheet.</div></div>
<div class="ttc" id="aworksheet_8h_html_a3a7fdfe9ef603ef75a03818e6abbfd12"><div class="ttname"><a href="worksheet_8h.html#a3a7fdfe9ef603ef75a03818e6abbfd12">worksheet_center_vertically</a></div><div class="ttdeci">void worksheet_center_vertically(lxw_worksheet *worksheet)</div><div class="ttdoc">Center the printed page vertically.</div></div>
<div class="ttc" id="aworksheet_8h_html_af4c868a5cf0eaab8740c1f966ba5561c"><div class="ttname"><a href="worksheet_8h.html#af4c868a5cf0eaab8740c1f966ba5561c">worksheet_insert_image_buffer_opt</a></div><div class="ttdeci">lxw_error worksheet_insert_image_buffer_opt(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, const unsigned char *image_buffer, size_t image_size, lxw_image_options *options)</div><div class="ttdoc">Insert an image in a worksheet cell, from a memory buffer.</div></div>
<div class="ttc" id="aworksheet_8h_html_a1e84ef4dff791fc2278dfb029af94cb0"><div class="ttname"><a href="worksheet_8h.html#a1e84ef4dff791fc2278dfb029af94cb0">worksheet_set_tab_color</a></div><div class="ttdeci">void worksheet_set_tab_color(lxw_worksheet *worksheet, lxw_color_t color)</div><div class="ttdoc">Set the color of the worksheet tab.</div></div>
<div class="ttc" id="aworksheet_8h_html_a9ed8b0603df10ce2439b54f7980efb6d"><div class="ttname"><a href="worksheet_8h.html#a9ed8b0603df10ce2439b54f7980efb6d">worksheet_fit_to_pages</a></div><div class="ttdeci">void worksheet_fit_to_pages(lxw_worksheet *worksheet, uint16_t width, uint16_t height)</div><div class="ttdoc">Fit the printed area to a specific number of pages both vertically and horizontally.</div></div>
<div class="ttc" id="astructlxw__header__footer__options_html_a3a1bc57f98a514918ea3a38671a4ac2d"><div class="ttname"><a href="structlxw__header__footer__options.html#a3a1bc57f98a514918ea3a38671a4ac2d">lxw_header_footer_options::image_left</a></div><div class="ttdeci">char * image_left</div><div class="ttdef"><b>Definition:</b> worksheet.h:1482</div></div>
<div class="ttc" id="aworkbook_8h_html_a24dd6624ffdc3e17aa5bcfb4608755b8"><div class="ttname"><a href="workbook_8h.html#a24dd6624ffdc3e17aa5bcfb4608755b8">workbook_set_vba_name</a></div><div class="ttdeci">lxw_error workbook_set_vba_name(lxw_workbook *workbook, const char *name)</div><div class="ttdoc">Set the VBA name for the workbook.</div></div>
<div class="ttc" id="aworksheet_8h_html_ac208046e7a6d12cc87982422efa41b31"><div class="ttname"><a href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a></div><div class="ttdeci">lxw_error worksheet_write_string(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, const char *string, lxw_format *format)</div><div class="ttdoc">Write a string to a worksheet cell.</div></div>
<div class="ttc" id="aworksheet_8h_html_a0b05e75e2c2a5c3452374714cdb2b79b"><div class="ttname"><a href="worksheet_8h.html#a0b05e75e2c2a5c3452374714cdb2b79b">worksheet_insert_image_opt</a></div><div class="ttdeci">lxw_error worksheet_insert_image_opt(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, const char *filename, lxw_image_options *options)</div><div class="ttdoc">Insert an image in a worksheet cell, with options.</div></div>
<div class="ttc" id="aformat_8h_html_abeafc6e8222ba9fcfd4f2c2f4e9ea38baedd7412491d9f34fc5f947ada9d196ec"><div class="ttname"><a href="format_8h.html#abeafc6e8222ba9fcfd4f2c2f4e9ea38baedd7412491d9f34fc5f947ada9d196ec">LXW_COLOR_RED</a></div><div class="ttdeci">@ LXW_COLOR_RED</div><div class="ttdef"><b>Definition:</b> format.h:217</div></div>
<div class="ttc" id="aworksheet_8h_html_a14f482010dd0f817e17001d01644a57f"><div class="ttname"><a href="worksheet_8h.html#a14f482010dd0f817e17001d01644a57f">worksheet_data_validation_range</a></div><div class="ttdeci">lxw_error worksheet_data_validation_range(lxw_worksheet *worksheet, lxw_row_t first_row, lxw_col_t first_col, lxw_row_t last_row, lxw_col_t last_col, lxw_data_validation *validation)</div><div class="ttdoc">Add a data validation to a range.</div></div>
<div class="ttc" id="aworksheet_8h_html_ab9b7fb95e1bd9b0da70befd0d37a9173"><div class="ttname"><a href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a></div><div class="ttdeci">lxw_error worksheet_set_row(lxw_worksheet *worksheet, lxw_row_t row, double height, lxw_format *format)</div><div class="ttdoc">Set the properties for a row of cells.</div></div>
<div class="ttc" id="aworksheet_8h_html_ad9fc47d3beaa2ab4759414e8580c2289"><div class="ttname"><a href="worksheet_8h.html#ad9fc47d3beaa2ab4759414e8580c2289">worksheet_write_number</a></div><div class="ttdeci">lxw_error worksheet_write_number(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, double number, lxw_format *format)</div><div class="ttdoc">Write a number to a worksheet cell.</div></div>
<div class="ttc" id="aworksheet_8h_html_adb169a9740135f5c01eab94099d77f9b"><div class="ttname"><a href="worksheet_8h.html#adb169a9740135f5c01eab94099d77f9b">worksheet_print_row_col_headers</a></div><div class="ttdeci">void worksheet_print_row_col_headers(lxw_worksheet *worksheet)</div><div class="ttdoc">Set the option to print the row and column headers on the printed page.</div></div>
<div class="ttc" id="aformat_8h_html_a61981b2080bfe6381ede5358ee05b05c"><div class="ttname"><a href="format_8h.html#a61981b2080bfe6381ede5358ee05b05c">format_set_font_color</a></div><div class="ttdeci">void format_set_font_color(lxw_format *format, lxw_color_t color)</div><div class="ttdoc">Set the color of the font used in the cell.</div></div>
<div class="ttc" id="aworksheet_8h_html_a70c4b9cfb27b18258117545ac6ce6da0"><div class="ttname"><a href="worksheet_8h.html#a70c4b9cfb27b18258117545ac6ce6da0">worksheet_data_validation_cell</a></div><div class="ttdeci">lxw_error worksheet_data_validation_cell(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, lxw_data_validation *validation)</div><div class="ttdoc">Add a data validation to a cell.</div></div>
<div class="ttc" id="aworksheet_8h_html_a7e52f1eecb20fe4f9e6223bcf195103b"><div class="ttname"><a href="worksheet_8h.html#a7e52f1eecb20fe4f9e6223bcf195103b">worksheet_freeze_panes</a></div><div class="ttdeci">void worksheet_freeze_panes(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col)</div><div class="ttdoc">Split and freeze a worksheet into panes.</div></div>
<div class="ttc" id="aworksheet_8h_html_aebd5cc71a42ab0e4a9ce45fe9a6f6908"><div class="ttname"><a href="worksheet_8h.html#aebd5cc71a42ab0e4a9ce45fe9a6f6908">worksheet_insert_image_buffer</a></div><div class="ttdeci">lxw_error worksheet_insert_image_buffer(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, const unsigned char *image_buffer, size_t image_size)</div><div class="ttdoc">Insert an image in a worksheet cell, from a memory buffer.</div></div>
<div class="ttc" id="astructlxw__header__footer__options_html"><div class="ttname"><a href="structlxw__header__footer__options.html">lxw_header_footer_options</a></div><div class="ttdoc">Header and footer options.</div><div class="ttdef"><b>Definition:</b> worksheet.h:1474</div></div>
<div class="ttc" id="aworksheet_8h_html_a487e0bffad0a348421b825d715621c20a6ad2d5f382b103286ccdf7561a9d2328"><div class="ttname"><a href="worksheet_8h.html#a487e0bffad0a348421b825d715621c20a6ad2d5f382b103286ccdf7561a9d2328">LXW_SHOW_PRINT_GRIDLINES</a></div><div class="ttdeci">@ LXW_SHOW_PRINT_GRIDLINES</div><div class="ttdef"><b>Definition:</b> worksheet.h:87</div></div>
<div class="ttc" id="aworksheet_8h_html_a62bf44845ce9dcc505bf228999db5afa"><div class="ttname"><a href="worksheet_8h.html#a62bf44845ce9dcc505bf228999db5afa">worksheet_write_rich_string</a></div><div class="ttdeci">lxw_error worksheet_write_rich_string(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, lxw_rich_string_tuple *rich_string[], lxw_format *format)</div><div class="ttdoc">Write a &quot;Rich&quot; multi-format string to a worksheet cell.</div></div>
<div class="ttc" id="aformat_8h_html_ad35ee5445826bd93ec1bc0d489fc09db"><div class="ttname"><a href="format_8h.html#ad35ee5445826bd93ec1bc0d489fc09db">format_set_underline</a></div><div class="ttdeci">void format_set_underline(lxw_format *format, uint8_t style)</div><div class="ttdoc">Turn on underline for the format:</div></div>
<div class="ttc" id="aworksheet_8h_html_a9f4a3845529bcc2922b89bdb450ded32"><div class="ttname"><a href="worksheet_8h.html#a9f4a3845529bcc2922b89bdb450ded32">worksheet_split_panes</a></div><div class="ttdeci">void worksheet_split_panes(lxw_worksheet *worksheet, double vertical, double horizontal)</div><div class="ttdoc">Split a worksheet into panes.</div></div>
<div class="ttc" id="aworksheet_8h_html_a47b554f3a8f1475b57df705fd326ae6bae8a15acdb209feb53b8948c0e50cc9c3"><div class="ttname"><a href="worksheet_8h.html#a47b554f3a8f1475b57df705fd326ae6bae8a15acdb209feb53b8948c0e50cc9c3">LXW_CONDITIONAL_CRITERIA_LESS_THAN</a></div><div class="ttdeci">@ LXW_CONDITIONAL_CRITERIA_LESS_THAN</div><div class="ttdef"><b>Definition:</b> worksheet.h:311</div></div>
<div class="ttc" id="aworksheet_8h_html_a9656e4e05d3787eee6b3e4d8e82d9b7f"><div class="ttname"><a href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a></div><div class="ttdeci">lxw_error worksheet_set_column(lxw_worksheet *worksheet, lxw_col_t first_col, lxw_col_t last_col, double width, lxw_format *format)</div><div class="ttdoc">Set the properties for one or more columns of cells.</div></div>
<div class="ttc" id="aworksheet_8h_html_a931114d5266e03931f9fc1b21bd9b56c"><div class="ttname"><a href="worksheet_8h.html#a931114d5266e03931f9fc1b21bd9b56c">worksheet_center_horizontally</a></div><div class="ttdeci">void worksheet_center_horizontally(lxw_worksheet *worksheet)</div><div class="ttdoc">Center the printed page horizontally.</div></div>
<div class="ttc" id="aworksheet_8h_html_a5022e812b6fe0414f2a8bab03fd0ec48"><div class="ttname"><a href="worksheet_8h.html#a5022e812b6fe0414f2a8bab03fd0ec48">worksheet_repeat_rows</a></div><div class="ttdeci">lxw_error worksheet_repeat_rows(lxw_worksheet *worksheet, lxw_row_t first_row, lxw_row_t last_row)</div><div class="ttdoc">Set the number of rows to repeat at the top of each printed page.</div></div>
<div class="ttc" id="aworksheet_8h_html_aef79f21eefbda49cd04e338d958c8a95"><div class="ttname"><a href="worksheet_8h.html#aef79f21eefbda49cd04e338d958c8a95">worksheet_conditional_format_range</a></div><div class="ttdeci">lxw_error worksheet_conditional_format_range(lxw_worksheet *worksheet, lxw_row_t first_row, lxw_col_t first_col, lxw_row_t last_row, lxw_col_t last_col, lxw_conditional_format *conditional_format)</div><div class="ttdoc">Add a conditional format to a worksheet range.</div></div>
<div class="ttc" id="autility_8h_html_ad510ac6df573d23203374e24dba373d2"><div class="ttname"><a href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a></div><div class="ttdeci">#define CELL(cell)</div><div class="ttdoc">Convert an Excel A1 cell string into a (row, col) pair.</div><div class="ttdef"><b>Definition:</b> utility.h:45</div></div>
<div class="ttc" id="aworkbook_8h_html_a81d456b4f65a464e78e4a0030ecc3c2e"><div class="ttname"><a href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a></div><div class="ttdeci">lxw_worksheet * workbook_add_worksheet(lxw_workbook *workbook, const char *sheetname)</div><div class="ttdoc">Add a new worksheet to a workbook.</div></div>
<div class="ttc" id="aworkbook_8h_html_a63b001ecefdbc4417986a3e344657726"><div class="ttname"><a href="workbook_8h.html#a63b001ecefdbc4417986a3e344657726">workbook_add_chart</a></div><div class="ttdeci">lxw_chart * workbook_add_chart(lxw_workbook *workbook, uint8_t chart_type)</div><div class="ttdoc">Create a new chart to be added to a worksheet:</div></div>
<div class="ttc" id="aworksheet_8h_html_af498d1caa032633240af6d26ef80515a"><div class="ttname"><a href="worksheet_8h.html#af498d1caa032633240af6d26ef80515a">worksheet_set_portrait</a></div><div class="ttdeci">void worksheet_set_portrait(lxw_worksheet *worksheet)</div><div class="ttdoc">Set the page orientation as portrait.</div></div>
<div class="ttc" id="aworksheet_8h_html_af052fbb1e438c622b873ca3ebd6ef0f4"><div class="ttname"><a href="worksheet_8h.html#af052fbb1e438c622b873ca3ebd6ef0f4">worksheet_ignore_errors</a></div><div class="ttdeci">lxw_error worksheet_ignore_errors(lxw_worksheet *worksheet, uint8_t type, const char *range)</div><div class="ttdoc">Ignore various Excel errors/warnings in a worksheet for user defined ranges.</div></div>
<div class="ttc" id="aworksheet_8h_html_abd1728d105365c0113e15f40c6bb1b27"><div class="ttname"><a href="worksheet_8h.html#abd1728d105365c0113e15f40c6bb1b27">worksheet_write_comment</a></div><div class="ttdeci">lxw_error worksheet_write_comment(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, const char *string)</div><div class="ttdoc">Write a comment to a worksheet cell.</div></div>
<div class="ttc" id="acommon_8h_html_a4fedd8dede664b070e84e850a3f92fd2"><div class="ttname"><a href="common_8h.html#a4fedd8dede664b070e84e850a3f92fd2">lxw_col_t</a></div><div class="ttdeci">uint16_t lxw_col_t</div><div class="ttdef"><b>Definition:</b> common.h:46</div></div>
<div class="ttc" id="aworksheet_8h_html_a88eed033ce0af97d5151528bc514fbf5a2f5a8dc34e8bd8b298372f2a09102bd9"><div class="ttname"><a href="worksheet_8h.html#a88eed033ce0af97d5151528bc514fbf5a2f5a8dc34e8bd8b298372f2a09102bd9">LXW_VALIDATION_CRITERIA_BETWEEN</a></div><div class="ttdeci">@ LXW_VALIDATION_CRITERIA_BETWEEN</div><div class="ttdef"><b>Definition:</b> worksheet.h:171</div></div>
<div class="ttc" id="aworkbook_8h_html_a279a5d7075d09a3931aae9782afede33"><div class="ttname"><a href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a></div><div class="ttdeci">lxw_format * workbook_add_format(lxw_workbook *workbook)</div><div class="ttdoc">Create a new Format object to formats cells in worksheets.</div></div>
<div class="ttc" id="aworksheet_8h_html_ad5a2a09ec65c0f286b756235c7327225"><div class="ttname"><a href="worksheet_8h.html#ad5a2a09ec65c0f286b756235c7327225">worksheet_merge_range</a></div><div class="ttdeci">lxw_error worksheet_merge_range(lxw_worksheet *worksheet, lxw_row_t first_row, lxw_col_t first_col, lxw_row_t last_row, lxw_col_t last_col, const char *string, lxw_format *format)</div><div class="ttdoc">Merge a range of cells.</div></div>
<div class="ttc" id="aworksheet_8h_html_a3df7073ab35462516525d28975286994"><div class="ttname"><a href="worksheet_8h.html#a3df7073ab35462516525d28975286994">LXW_DEF_COL_WIDTH</a></div><div class="ttdeci">#define LXW_DEF_COL_WIDTH</div><div class="ttdef"><b>Definition:</b> worksheet.h:73</div></div>
<div class="ttc" id="aworksheet_8h_html_ae55a1d5b4956a8e07ff721ecd80dde95"><div class="ttname"><a href="worksheet_8h.html#ae55a1d5b4956a8e07ff721ecd80dde95">worksheet_write_formula_str</a></div><div class="ttdeci">lxw_error worksheet_write_formula_str(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, const char *formula, lxw_format *format, const char *result)</div><div class="ttdoc">Write a formula to a worksheet cell with a user defined string result.</div></div>
<!-- HTML footer for doxygen 1.8.20-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Copyright 2014-2020 John McNamara.
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
